3 ms·
that's why the rule #1 of robust shell scripts is "set -e", exit on any error. This is not perfect, but helps with most of the errors.
by theamk 2y ago
that's why the rule #1 of robust shell scripts is "set -e", exit on any error. This is not perfect, but helps with most of the errors.
- mananaysiempre 2y agoset -euo pipefail, if you're OK with the Bashism.
- thristian 2y agoSince POSIX 2024, `set -o pipefail` is no longer a bashism!