bash
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
bash [2023/01/17 11:19] – created roger | bash [2023/01/17 11:24] – roger | ||
---|---|---|---|
Line 3: | Line 3: | ||
Useful Bash code, with no particular order | Useful Bash code, with no particular order | ||
+ | ===== Add safeguards on every script ===== | ||
+ | |||
+ | At the top of the file, always start your scripts with: | ||
+ | |||
+ | <code bash> | ||
+ | set -euo pipefail | ||
+ | </ | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' |
bash.txt · Last modified: 2023/01/17 11:27 by roger