From eea5d0a5e73c00e9008921469a39f0d399c1b233 Mon Sep 17 00:00:00 2001 From: simono41 Date: Wed, 14 Mar 2018 04:16:18 +0100 Subject: [PATCH] fix --- arch-install | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch-install b/arch-install index 8d32665..6c40e17 100755 --- a/arch-install +++ b/arch-install @@ -30,13 +30,14 @@ 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 / +cd / } function secureumount() {