title: syntax error in conditional expression: unexpected token `;'
body: <p>I have a shell script that should accept multiple arguments.</p>
  
  <p>It can either accept the argument "update" or "create". If no argument is passed, the user should get an error. However, when building my <code>if/elif</code> condition I'm getting the error:</p>
  
  <pre><code>syntax error in conditional expression: unexpected token `;'
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>firstParam=$1
  echo $firstParam //update/create/{empty}
  
  if [[ "$firstParam" == "" ]]; then
      printf "${RED}Use this script as \"tzfrs update/new [projectName]\"${NC} \n"
      exit 1
  elif [[ "$firstParam" == "update"]]; then
    printf "update"
    exit 1
  fi
  </code></pre>
  
  <p>If I have the script like this</p>
  
  <pre><code>if [[ "$firstParam" == "" ]]; then
      printf "${RED}Use this script as \"tzfrs update/new [projectName]\"${NC} \n"
      exit 1
  fi
  </code></pre>
  
  <p>The error handling works, and I'm seeing the following message</p>
  
  <p><code>Use this script as "tzfrs update/new [projectName]"</code></p>
  
  <p>However, when adding the <code>elif</code> condition I'm getting the above error. Anyone any idea?</p>