Skip to content

Instantly share code, notes, and snippets.

@ElijahLynn
Created February 7, 2025 00:37
Show Gist options
  • Save ElijahLynn/e5cb480ea80d977f87f556b67f68d898 to your computer and use it in GitHub Desktop.
Save ElijahLynn/e5cb480ea80d977f87f556b67f68d898 to your computer and use it in GitHub Desktop.
bash strict mode oneliner with a good comment explaining the options
# enable bash strict mode: exit on error (-e), undefined variables (-u), & pipe failures (-o pipefail)
set -euo pipefail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment