diff options
author | xengineering <mail2xengineering@protonmail.com> | 2019-10-13 13:46:21 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2019-10-13 13:46:21 +0200 |
commit | 2b67ded2a523174101e8295fbd464de9740ed0cf (patch) | |
tree | 4057cb03e3515067ea213470da079986b0e76b9d | |
parent | fc9ed13a456d90598c61c5d924afaff73e31bf09 (diff) | |
download | archinstall-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.sh | 3 |
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" |