fix
This commit is contained in:
parent
e53427eeb9
commit
1b8541c079
1 changed files with 4 additions and 4 deletions
|
@ -27,19 +27,19 @@ userpass="$3"
|
||||||
[[ -z "${userpass}" ]] && userpass="user1"
|
[[ -z "${userpass}" ]] && userpass="user1"
|
||||||
|
|
||||||
function gitclone() {
|
function gitclone() {
|
||||||
if [ -d "${repo}" ]; then
|
if [ -d "/opt/${repo}" ]; then
|
||||||
echo "${repo} existiert bereits!!!"
|
echo "${repo} existiert bereits!!!"
|
||||||
cd /opt/${repo}
|
cd /opt/${repo}
|
||||||
git pull
|
git pull
|
||||||
else
|
else
|
||||||
git clone ${WEBADDRESS}
|
git clone ${WEBADDRESS} /opt/${repo}
|
||||||
fi
|
fi
|
||||||
if [ -d "${repo1}" ]; then
|
if [ -d "/opt/${repo1}" ]; then
|
||||||
echo "${repo1} existiert bereits!!!"
|
echo "${repo1} existiert bereits!!!"
|
||||||
cd /opt/${repo1}
|
cd /opt/${repo1}
|
||||||
git pull
|
git pull
|
||||||
else
|
else
|
||||||
git clone ${WEBADDRESS1}
|
git clone ${WEBADDRESS1} /opt/${repo1}
|
||||||
fi
|
fi
|
||||||
cd /
|
cd /
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue