Update git.tpl

This commit is contained in:
dami
2025-06-09 23:03:14 +08:00
parent 42fb44dd15
commit 81f9ee5eca
+5
View File
@@ -13,7 +13,12 @@ if [ ! -d {$ROOT_PATH}/gitcode ];then
fi
if [ -d {$ROOT_PATH}/gitcode/{$REPO} ];then
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