title: Exit a Script On Error
body: <p>I'm building a Shell Script that has a <code>if</code> function like this one:</p>
  
  <pre><code>if jarsigner -verbose -keystore $keyst -keystore $pass $jar_file $kalias
  then
      echo $jar_file signed sucessfully
  else
      echo ERROR: Failed to sign $jar_file. Please recheck the variables
  fi
  
  ...
  </code></pre>
  
  <p>I want the execution of the script to finish after displaying the error message. How I can do this?</p>