Skip to content

Instantly share code, notes, and snippets.

@priyadarshan
Forked from doctaphred/shell-script
Created February 11, 2020 18:59
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 priyadarshan/87bd47ea9cb27fa390cf5001fe4bde7d to your computer and use it in GitHub Desktop.
Save priyadarshan/87bd47ea9cb27fa390cf5001fe4bde7d to your computer and use it in GitHub Desktop.
How to start every shell script, since I can never remember
#!/bin/sh -euvx
# -e If non interactive then exit immediately if a command fails.
# -u Treat unset variables as an error when substituting.
# -v Print shell input lines as they are read.
# -x Print commands and their arguments as they are executed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment