mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-09 22:29:25 +08:00
Update git.tpl
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user