mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
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 <jan@janware.com>
This commit is contained in:
parent
2d515160b5
commit
cf4308e2c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue