From a3520260ad6dbfcdcc4e86090d92b8a61ff85bbf Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 4 Oct 2022 19:34:40 +0200 Subject: [PATCH] [F] Verschiedene Syntaxverbesserungen --- scripts/update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index 82510d2..ebb64ad 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -16,6 +16,7 @@ git config --global credential.helper store repo=deadc0de-remix-os repo1=shell-scripte-code arch=$(uname -m) +branch=master # Aktualisiere die Repositiories /opt/${repo}/repo.sh @@ -23,13 +24,13 @@ arch=$(uname -m) if [ -d "/opt/${repo}" ]; then echo "${repo} existiert bereits!!!" cd /opt/${repo} - git checkout ${arch} + git checkout ${branch} if ! git remote set-url origin ${WEBADDRESS_OS}; then git remote add origin ${WEBADDRESS_OS} fi git pull else - git clone -b ${arch} ${WEBADDRESS_OS} /opt/${repo} + git clone -b ${branch} ${WEBADDRESS_OS} /opt/${repo} fi if [ -d "/opt/${repo1}" ]; then echo "${repo1} existiert bereits!!!"