Skip to content

Commit

Permalink
Add -o pipefail to konduit.sh
Browse files Browse the repository at this point in the history
The simple set -eu doesn't prevent failure when commands are piped to
each other
Add -o pipefail to detect failure even when using a pipe
  • Loading branch information
saliceti committed Feb 11, 2025
1 parent bd9bd5c commit 9f538cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/konduit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Stop the script in case a command fails. Cleanup will still run
# Fail when a variable is unexpectedly not set
# If variable $VAR can be unset, use ${VAR:-} to provide a default "" value
set -eu
set -euo pipefail

help() {
echo
Expand Down

0 comments on commit 9f538cc

Please sign in to comment.