Skip to content

Instantly share code, notes, and snippets.

@zsxwing
Created September 2, 2013 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsxwing/6411745 to your computer and use it in GitHub Desktop.
Save zsxwing/6411745 to your computer and use it in GitHub Desktop.
We can add -e at the end of "#!/bin/bash" or use "set -e" to let the script exit when some error happens
#!/bin/bash -e
set -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment