fixed syncgit result comparison for pull exit code

This commit is contained in:
Axel Uhl
2024-06-10 23:06:43 +02:00
parent 859111f71f
commit e5835482c4
@@ -18,7 +18,7 @@ if [ "$?" != "0" ]; then
cat /tmp/wiki-git.out /tmp/wiki-git.err | mail -s "Wiki git problem: could not push main into sapsailing/main" $ADMIN_EMAIL
fi
git pull github main >/tmp/wiki-git.out 2>/tmp/wiki-git.err
if [ "$?" != "1" ]; then
if [ "$?" != "0" ]; then
cat /tmp/wiki-git.out /tmp/wiki-git.err | mail -s "Wiki git problem: could not merge github/main into sapsailing/master" $ADMIN_EMAIL
fi
git pull >/tmp/wiki-git.out 2>/tmp/wiki-git.err