bash
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
bash [2023/01/17 14:19] – created roger | bash [2023/01/17 14: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: 2024/11/17 12:59 by 127.0.0.1