Commit f4ebda3
committed
feat: add strict error handling with set -euo pipefail
- Add 'set -euo pipefail' at the top of the script for robust error handling
- Define safe IFS variable to prevent word splitting issues
- Ensures script exits on any command failure (-e)
- Treats unset variables as errors (-u)
- Handles pipe failures properly (-o pipefail)
- Improves script robustness and prevents silent failures
This follows bash best practices for production scripts and makes
debugging easier by failing fast on any unexpected conditions.1 parent b39c39f commit f4ebda3
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
0 commit comments