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"
function gitclone() {
cd /root/
if [ -d "${repo}" ]; then
if [ -d "/opt/${repo}" ]; then
echo "${repo} existiert bereits!!!"
rm -Rv ${repo}
cd /opt/${repo}
git pull
else
git clone ${WEBADDRESS} /opt/${repo}
fi
git clone ${WEBADDRESS}
cd /
}