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