diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 69eff5e..3b098d3 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -30,20 +30,14 @@ function gitclone() { cd /root/ if [ -d "${repo}" ]; then echo "${repo} existiert bereits!!!" - cd ${repo} - git pull - cd .. - else - git clone ${WEBADDRESS} + rm -Rv ${repo} fi + git clone ${WEBADDRESS} if [ -d "${repo1}" ]; then echo "${repo1} existiert bereits!!!" - cd ${repo1} - git pull - cd .. - else - git clone ${WEBADDRESS1} + rm -Rv ${repo1} fi + git clone ${WEBADDRESS1} cd / } diff --git a/arch-install b/arch-install index 6b8572f..d769c4a 100755 --- a/arch-install +++ b/arch-install @@ -38,12 +38,9 @@ function gitclone() { cd /root/ if [ -d "${repo}" ]; then echo "${repo} existiert bereits!!!" - cd ${repo} - git pull - cd .. - else - git clone ${WEBADDRESS} + rm -Rv ${repo} fi + git clone ${WEBADDRESS} cd / } diff --git a/auto.sh b/auto.sh index 336ad85..55e693b 100755 --- a/auto.sh +++ b/auto.sh @@ -10,15 +10,11 @@ version="$1" cd /root/ if [ -d "/root/${repo}/" ]; then - echo "Existiert bereits!!!" -else - git clone http://${server}/${user}/${repo}.git + echo "Existiert bereits!!!" + rm -Rv ${repo} fi +git clone http://${server}/${user}/${repo}.git cd /root/${repo}/ -git pull -if [ -d "out/" ]; then - rm -Rv out/ -fi ./make_mksquashfs-auto.sh ${version} scp out/* ${server}:/var/www/html/ diff --git a/update.sh b/update.sh index a671646..dea78ea 100755 --- a/update.sh +++ b/update.sh @@ -21,12 +21,9 @@ function gitclone() { cd /root/ if [ -d "${repo}" ]; then echo "${repo} existiert bereits!!!" - cd ${repo} - git pull - cd .. - else - git clone ${WEBADDRESS} + rm -Rv ${repo} fi + git clone ${WEBADDRESS} cd / }