title: Execute a shell command from a shell script without stopping if error occurs
body: <p>In a sort of try/catch form I want to execute a bash that doesn't stop if an error occurs.</p>
  
  <p>The specific bash is:</p>
  
  <pre><code>#!/bin/sh
  
  invoke-rc.d tomcat stop
  
  rm -fr /var/webapps/
  cp -R $WEBAPP /var/webapps/
  invoke-rc.d tomcat start
  </code></pre>
  
  <p>I want to exec "invoke-rc.d tomcat stop" and even if Tomcat is not running, continue to execute the other bash commands.</p>