pull problem fixed

This commit is contained in:
2020-10-25 01:34:32 +02:00
parent 5b8db806b0
commit 7495a69a0e
+6 -3
View File
@@ -104,17 +104,20 @@ if [ ! -d $TMPGIT_POSTS ]
mkdir -v $TMPGIT_POSTS 2>&1 | tee -a $LOG mkdir -v $TMPGIT_POSTS 2>&1 | tee -a $LOG
git clone $GIT_POSTS $TMPGIT_POSTS 2>&1 | tee -a $LOG git clone $GIT_POSTS $TMPGIT_POSTS 2>&1 | tee -a $LOG
else else
cd $TMPGIT_POSTS && git pull $GIT_POSTS 2>&1 | tee -a $LOG cd $TMPGIT_POSTS
pwd 2>&1 | tee -a $LOG
git pull 2>&1 | tee -a $LOG
fi fi
if [ ! -d $TMPGIT_HUGO ] if [ ! -d $TMPGIT_HUGO ]
then then
# jetzt clonen wir das Repository in den temporären Ordner # jetzt clonen wir das Repository in den temporären Ordner
mkdir -v $TMPGIT_HUGO 2>&1 | tee -a $LOG mkdir -v $TMPGIT_HUGO 2>&1 | tee -a $LOG
git clone --recursive $GIT_HUGO $TMPGIT_HUGO 2>&1 | tee -a $LOG git clone --recursive $GIT_HUGO $TMPGIT_HUGO 2>&1 | tee -a $LOG
else else
cd $TMPGIT_HUGO && git pull $GIT_HUGO 2>&1 | tee -a $LOG cd $TMPGIT_HUGO
pwd 2>&1 | tee -a $LOG
git pull 2>&1 | tee -a $LOG
fi fi
# Hugo anschmeißen # Hugo anschmeißen