summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--new_archinstall.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/new_archinstall.sh b/new_archinstall.sh
index 1f2b5cd..bb485b8 100644
--- a/new_archinstall.sh
+++ b/new_archinstall.sh
@@ -104,7 +104,9 @@ output "Cloning git repository ..."
pacman --noconfirm -Sy git | tee -a $LOG_FILE_PATH
mkdir $REPOSITORY_PATH
-git clone $REPOSITORY_URL | tee -a $LOG_FILE_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
output "Git repository cloned - OK"