From d34577329e47bff4151de82daf715a1ca6e8de48 Mon Sep 17 00:00:00 2001 From: Orazio Date: Wed, 27 Nov 2019 11:59:53 +0100 Subject: [PATCH] Removed reference to deleted branch --- auto_install/install.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 0c092a4..95a3a81 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -615,12 +615,10 @@ updateRepo(){ cd /etc $SUDO git clone -q --depth 1 --no-single-branch "${2}" "${1}" > /dev/null & spinner $! cd "${1}" || exit 1 - if [ -z "${TESTING}" ]; then + if [ -z "${TESTING+x}" ]; then : - elif [ "${TESTING}" = "test" ]; then + else ${SUDOE} git checkout test - elif [ "${TESTING}" = "test-wireguard" ]; then - ${SUDOE} git checkout test-wireguard fi echo " done!" } @@ -634,12 +632,10 @@ makeRepo(){ cd /etc $SUDO git clone -q --depth 1 --no-single-branch "${2}" "${1}" > /dev/null & spinner $! cd "${1}" || exit 1 - if [ -z "${TESTING}" ]; then + if [ -z "${TESTING+x}" ]; then : - elif [ "${TESTING}" = "test" ]; then + else ${SUDOE} git checkout test - elif [ "${TESTING}" = "test-wireguard" ]; then - ${SUDOE} git checkout test-wireguard fi echo " done!" }