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:
parent
dad93db56e
commit
ce2fee138a
1 changed files with 1 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")`
|
||||
set -euo pipefail
|
||||
|
||||
$0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue