Update git.tpl

pull/755/head
dami 3 months ago
parent 42fb44dd15
commit 81f9ee5eca
  1. 7
      plugins/webhook/tpl/git.tpl

@ -13,7 +13,12 @@ if [ ! -d {$ROOT_PATH}/gitcode ];then
fi
if [ -d {$ROOT_PATH}/gitcode/{$REPO} ];then
cd {$ROOT_PATH}/gitcode/{$REPO} && sudo git pull
which sudo
if [ "$?" == "0" ];then
cd {$ROOT_PATH}/gitcode/{$REPO} && sudo git pull
else
cd {$ROOT_PATH}/gitcode/{$REPO} && git pull
fi
else
cd {$ROOT_PATH}/gitcode && git clone http://0.0.0.0:6660/xx/{$REPO}
fi

Loading…
Cancel
Save