fix
This commit is contained in:
parent
546e628e07
commit
a3431aecd2
1 changed files with 5 additions and 4 deletions
|
@ -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 /
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue