This commit is contained in:
simono41 2018-03-10 22:17:49 +01:00
parent e53427eeb9
commit 1b8541c079

View file

@ -27,19 +27,19 @@ userpass="$3"
[[ -z "${userpass}" ]] && userpass="user1"
function gitclone() {
if [ -d "${repo}" ]; then
if [ -d "/opt/${repo}" ]; then
echo "${repo} existiert bereits!!!"
cd /opt/${repo}
git pull
else
git clone ${WEBADDRESS}
git clone ${WEBADDRESS} /opt/${repo}
fi
if [ -d "${repo1}" ]; then
if [ -d "/opt/${repo1}" ]; then
echo "${repo1} existiert bereits!!!"
cd /opt/${repo1}
git pull
else
git clone ${WEBADDRESS1}
git clone ${WEBADDRESS1} /opt/${repo1}
fi
cd /
}