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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-04 19:02:21 +02:00
commit 91abb82879

View file

@ -299,9 +299,12 @@ cmd_diff()
done done
) )
set -o pipefail
myname=${0##*/} myname=${0##*/}
cmdline="$myname $*" cmdline="$myname $*"
porcelain=0 porcelain=0
log_start_stop start log_start_stop start
log "GIT_SSH=$GIT_SSH" log "GIT_SSH=$GIT_SSH"
log "JW_PKG_SSH_EXTRA_OPTS=$JW_PKG_SSH_EXTRA_OPTS" log "JW_PKG_SSH_EXTRA_OPTS=$JW_PKG_SSH_EXTRA_OPTS"