From 91abb8287971c54e30fb438422e9f18f7338c653 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 4 Apr 2026 19:02:21 +0200 Subject: [PATCH] pgit.sh: Set -o pipefail Set -o pipefail at the start of the script. This makes pgit.sh commit work. Before it didn't, because run_git() doesn't return a proper return value when it's used in a pipe with a cosmetic sed afterwards. Signed-off-by: Jan Lindemann --- scripts/pgit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pgit.sh b/scripts/pgit.sh index a990086b..c7d0f3a8 100644 --- a/scripts/pgit.sh +++ b/scripts/pgit.sh @@ -299,9 +299,12 @@ cmd_diff() done ) +set -o pipefail + myname=${0##*/} cmdline="$myname $*" porcelain=0 + log_start_stop start log "GIT_SSH=$GIT_SSH" log "JW_PKG_SSH_EXTRA_OPTS=$JW_PKG_SSH_EXTRA_OPTS"