git pull with -C

This commit is contained in:
2020-10-25 01:58:35 +02:00
parent 7495a69a0e
commit a65fb5f08b
+2 -6
View File
@@ -104,9 +104,7 @@ 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 -C $TMPGIT_POSTS pull 2>&1 | tee -a $LOG
pwd 2>&1 | tee -a $LOG
git pull 2>&1 | tee -a $LOG
fi fi
if [ ! -d $TMPGIT_HUGO ] if [ ! -d $TMPGIT_HUGO ]
@@ -115,9 +113,7 @@ if [ ! -d $TMPGIT_HUGO ]
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 -C $TMPGIT_HUGO pull 2>&1 | tee -a $LOG
pwd 2>&1 | tee -a $LOG
git pull 2>&1 | tee -a $LOG
fi fi
# Hugo anschmeißen # Hugo anschmeißen