pgit.sh: Fix "Running" log message

pgit.sh logs "Running $0 $@ GIT_SSH=" which is not the exact command
line. Fix that, and prefix log messages with "pgit.sh".

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-03 04:52:56 +01:00
commit e7cf6afe17

View file

@ -4,17 +4,17 @@
log()
{
echo $@
echo "$myname $*"
}
err()
{
log $@
log "$@"
}
fatal()
{
err $@
err "$@"
exit 1
}
@ -255,7 +255,10 @@ cmd_diff()
done
)
echo "running $0 $@ GIT_SSH=$GIT_SSH" >&2
myname=${0##*/}
log "Running $0 $@"
log "GIT_SSH=$GIT_SSH"
log "JW_PKG_SSH_EXTRA_OPTS=$JW_PKG_SSH_EXTRA_OPTS"
cur=0
SSH=ssh