summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-10-13 13:40:27 +0200
committerxengineering <mail2xengineering@protonmail.com>2019-10-13 13:40:27 +0200
commit2f843f4377a41efa79bb4c78886c28e39977b9fc (patch)
treedb5cffc60c947654aa834b99862e5d99b5efe350
parent76bdd08000d9b5ee32290e82635b2d9507c0c211 (diff)
downloadarchinstall-2f843f4377a41efa79bb4c78886c28e39977b9fc.tar
archinstall-2f843f4377a41efa79bb4c78886c28e39977b9fc.tar.zst
archinstall-2f843f4377a41efa79bb4c78886c28e39977b9fc.zip
Fixed bug in git cloning.
-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"