From cf4308e2c59d9f2ec9064418e11e980468d06b4d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 12 Jun 2017 08:59:08 +0000 Subject: [PATCH] pgit.sh: Add support for environment variable PGIT_KEEP_GOING Sadly, a commit returns 1 if there's nothing to commit, which makes pgit.sh error out of the project loop, which is run with set -e. This option disables -e. OTOH, pgit.sh commit could check for a diff and only run git commit if there is a diff. Signed-off-by: Jan Lindemann --- scripts/pgit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pgit.sh b/scripts/pgit.sh index 99cedf78..8db94966 100644 --- a/scripts/pgit.sh +++ b/scripts/pgit.sh @@ -53,7 +53,7 @@ run() config cd $pdir - set -e + if [ "$PGIT_KEEP_GOING" != y ]; then set -e; fi for d in $pdirs; do run_git -C $d $cmd "$@" done