Fixed pull issue with env

This commit is contained in:
Gitea
2020-10-25 02:47:22 +02:00
parent 47bc5d1511
commit 629055175d
+2 -2
View File
@@ -108,7 +108,7 @@ if [ ! -d $TMPGIT_POSTS ]
mkdir -v $TMPGIT_POSTS 2>&1 | tee -a $LOG
git clone $GIT_POSTS $TMPGIT_POSTS 2>&1 | tee -a $LOG
else
git -C $TMPGIT_POSTS pull 2>&1 | tee -a $LOG
env -i git -C $TMPGIT_POSTS pull 2>&1 | tee -a $LOG
fi
if [ ! -d $TMPGIT_HUGO ]
@@ -117,7 +117,7 @@ if [ ! -d $TMPGIT_HUGO ]
mkdir -v $TMPGIT_HUGO 2>&1 | tee -a $LOG
git clone --recursive $GIT_HUGO $TMPGIT_HUGO 2>&1 | tee -a $LOG
else
git -C $TMPGIT_HUGO pull 2>&1 | tee -a $LOG
env -i git -C $TMPGIT_HUGO pull 2>&1 | tee -a $LOG
fi
# Hugo anschmeißen