Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18834

fix shellcheck warning on hbase personality

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-alpha-4, 2.0.0
    • test
    • None

    Description

      current shellcheck gives us two warnings:

      $ shellcheck dev-support/hbase-personality.sh 
      
      In dev-support/hbase-personality.sh line 123:
              if [[ $? -eq 0 ]]; then
                    ^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
      
      
      In dev-support/hbase-personality.sh line 136:
              if [[ $? -eq 0 ]]; then
                    ^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
      
      

      Attachments

        1. HBASE-18834.0.patch
          1 kB
          Sean Busbey

        Activity

          People

            busbey Sean Busbey
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: