title: how to keep a mac shell command script for exiting
body: <p>I have a shell script that I put into a *.command file on mac os x, however it keeps exiting after the 2nd step and not doing the 3rd step which is to copy the file.  How can I keep the shell script from exiting after the build command and to continue to the copy step?</p>
  
  <pre><code>cd /Projects/my-app
  ionic build android --release
  cp /Projects/my-app/my-app-release.apk /Dropbox/my-app-release.apk
  </code></pre>
  
  <p>This is the output I get where it completes the 2nd build step but doesn't continue to the 3rd step</p>
  
  <pre><code>BUILD SUCCESSFUL
  Total time: 10 seconds
  logout
  
  [Process completed]
  </code></pre>