This commit is contained in:
simono41 2018-03-14 04:16:18 +01:00
parent 26e2f964be
commit eea5d0a5e7

View file

@ -30,12 +30,13 @@ function minimalinstallation() {
}
function gitclone() {
cd /opt/
if [ -d "${repo}" ]; then
if [ -d "/opt/${repo}" ]; then
echo "${repo} already exists!!!"
rm -Rv ${repo}
cd /opt/${repo}
git pull
else
git clone ${WEBADDRESS} /opt/${repo}
fi
git clone ${WEBADDRESS}
cd /
}