Skip to content

Instantly share code, notes, and snippets.

@roylee0704
Created September 1, 2016 06:46
Show Gist options
  • Save roylee0704/87e9a09dad984974105ac092210cb324 to your computer and use it in GitHub Desktop.
Save roylee0704/87e9a09dad984974105ac092210cb324 to your computer and use it in GitHub Desktop.
better bash programming
#!/bin/bash
set -o nounset # referencing undefined variables (which default to "")
set -o errexit # ignoring failing commands
#chmod +x example.sh always remember to assign permission: execute to the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment