Skip to content

Commit 49d9002

Browse files
author
Matthew Fisher
committed
Merge pull request #3457 from bacongobbler/fixup-trap
fix(builder): exit 1 when gitreceive captures a build
2 parents fb081f8 + e7023cd commit 49d9002

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/image/templates/gitreceive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ EOF
4444
do
4545
LOCKFILE="/tmp/$RECEIVE_REPO.lock"
4646
if ( set -o noclobber; echo "$$" > "$LOCKFILE" ) 2> /dev/null; then
47-
trap 'rm -f "$LOCKFILE"; exit $?' INT TERM EXIT
47+
trap 'rm -f "$LOCKFILE"; exit 1' INT TERM EXIT
4848

4949
# check for authorization on this repo
5050
$GITHOME/receiver "$RECEIVE_REPO" "$newrev" "$RECEIVE_USER" "$RECEIVE_FINGERPRINT"

0 commit comments

Comments
 (0)