This commit is contained in:
simono41 2018-03-14 19:40:21 +01:00
parent 546e628e07
commit a3431aecd2

View file

@ -18,12 +18,13 @@ fi
echo "Als root Angemeldet" echo "Als root Angemeldet"
function gitclone() { function gitclone() {
cd /root/ if [ -d "/opt/${repo}" ]; then
if [ -d "${repo}" ]; then
echo "${repo} existiert bereits!!!" echo "${repo} existiert bereits!!!"
rm -Rv ${repo} cd /opt/${repo}
git pull
else
git clone ${WEBADDRESS} /opt/${repo}
fi fi
git clone ${WEBADDRESS}
cd / cd /
} }