mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -1,3 +1,4 @@
|
|||||||
#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")`
|
#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")`
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
$0
|
$0
|
||||||
|
Reference in New Issue
Block a user