Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3910

zkServer.sh code format is oldfashioned and chaotic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.5, 3.5.6, 3.5.7, 3.6.1, 3.5.8
    • None
    • scripts
    • None

    Description

      Replaced old comparison of vars, usually used in sh.

      Since the script is now pure bash, it's better to use more standard comparators to improve readability, like 

       

      [ -z $var ] 
      

      instead of

      [ "x$var" = "x" ]

      Also equalized a bit the indentation and format of "if" statements in the script.

      This will improve readability, as pointed out above, and make it easier to maintain

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tanisdlj Diego Lucas Jiménez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: