[F] Verschiedene Syntaxverbesserungen
This commit is contained in:
parent
335c281441
commit
a3520260ad
1 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ git config --global credential.helper store
|
||||||
repo=deadc0de-remix-os
|
repo=deadc0de-remix-os
|
||||||
repo1=shell-scripte-code
|
repo1=shell-scripte-code
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
branch=master
|
||||||
|
|
||||||
# Aktualisiere die Repositiories
|
# Aktualisiere die Repositiories
|
||||||
/opt/${repo}/repo.sh
|
/opt/${repo}/repo.sh
|
||||||
|
@ -23,13 +24,13 @@ arch=$(uname -m)
|
||||||
if [ -d "/opt/${repo}" ]; then
|
if [ -d "/opt/${repo}" ]; then
|
||||||
echo "${repo} existiert bereits!!!"
|
echo "${repo} existiert bereits!!!"
|
||||||
cd /opt/${repo}
|
cd /opt/${repo}
|
||||||
git checkout ${arch}
|
git checkout ${branch}
|
||||||
if ! git remote set-url origin ${WEBADDRESS_OS}; then
|
if ! git remote set-url origin ${WEBADDRESS_OS}; then
|
||||||
git remote add origin ${WEBADDRESS_OS}
|
git remote add origin ${WEBADDRESS_OS}
|
||||||
fi
|
fi
|
||||||
git pull
|
git pull
|
||||||
else
|
else
|
||||||
git clone -b ${arch} ${WEBADDRESS_OS} /opt/${repo}
|
git clone -b ${branch} ${WEBADDRESS_OS} /opt/${repo}
|
||||||
fi
|
fi
|
||||||
if [ -d "/opt/${repo1}" ]; then
|
if [ -d "/opt/${repo1}" ]; then
|
||||||
echo "${repo1} existiert bereits!!!"
|
echo "${repo1} existiert bereits!!!"
|
||||||
|
|
Loading…
Reference in a new issue