Add set -euo pipefail to sh-mode file template

Adds a line with set -euo pipefail to the sh-mode file template, which improves the erroring of bash scripts
As described by https://ashishb.net/all/the-first-two-statements-of-your-bash-script-should-be/
This commit is contained in:
Steven vanZyl 2020-04-15 14:39:47 -04:00 committed by GitHub
parent dad93db56e
commit ce2fee138a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")`
set -euo pipefail
$0