Skip to content

Commit 1df43a6

Browse files
author
Matthew Fisher
committed
fix(builder): error on pipefail
In newer refactors of the builder, some commands are piped. In bash, the last command's exit code in the pipe is considered. With `set -o pipefail`, any command that fails in the pipe means that it's a non-zero pipe fail, which is what we expect to occur.
1 parent d93383d commit 1df43a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/image/templates/builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# builder hook called on every git receive-pack
44
# NOTE: this script must be run as root (for docker access)
55
#
6-
set -e
6+
set -eo pipefail
77

88
ARGS=3
99

0 commit comments

Comments
 (0)