11106 shaares
396 private links
396 private links
On reprends les tips 👍
Juste après le « shebang », mettre ça sur la ligne d’après :
set -euo pipefail
set -ewhich ensures that your script stops on first command failure.set -uwhich ensures that your script exits on the first unset variable encountered.set -o pipefailwhich ensures that if any command in a set of piped commands failed, the overall exit status is the status of the failed command.