From 2b67ded2a523174101e8295fbd464de9740ed0cf Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 13 Oct 2019 13:46:21 +0200 Subject: Added support for different branch/commit downloading in new_archinstall.sh. --- new_archinstall.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-70-g09d2