summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-10-13 13:46:21 +0200
committerxengineering <mail2xengineering@protonmail.com>2019-10-13 13:46:21 +0200
commit2b67ded2a523174101e8295fbd464de9740ed0cf (patch)
tree4057cb03e3515067ea213470da079986b0e76b9d
parentfc9ed13a456d90598c61c5d924afaff73e31bf09 (diff)
downloadarchinstall-2b67ded2a523174101e8295fbd464de9740ed0cf.tar
archinstall-2b67ded2a523174101e8295fbd464de9740ed0cf.tar.zst
archinstall-2b67ded2a523174101e8295fbd464de9740ed0cf.zip
Added support for different branch/commit downloading in new_archinstall.sh.
-rw-r--r--new_archinstall.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/new_archinstall.sh b/new_archinstall.sh
index 05fdbc5..a07f525 100644
--- a/new_archinstall.sh
+++ b/new_archinstall.sh
@@ -34,6 +34,7 @@ TESTSERVER="8.8.8.8" # hostnames will not work properly
LOG_FILE_PATH="/var/log/archinstall.log"
REPOSITORY_URL="https://github.com/xengineering/archinstall/"
REPOSITORY_PATH="/opt/archinstall.git"
+BRANCH_OR_COMMIT="master"
CONFIG_FILE_PATH="/etc/archinstall/config.json"
DELAY=0.5
@@ -105,7 +106,7 @@ output "Cloning git repository ..."
pacman --noconfirm -Sy git | tee -a $LOG_FILE_PATH
mkdir $REPOSITORY_PATH
git clone $REPOSITORY_URL $REPOSITORY_PATH | tee -a $LOG_FILE_PATH
-cd $REPOSITORY_PATH && git checkout $CLONE_BRANCH | tee -a $LOG_FILE_PATH
+cd $REPOSITORY_PATH && git checkout $BRANCH_OR_COMMIT | tee -a $LOG_FILE_PATH
cd
output "Git repository cloned - OK"