From 9cae879f81dd242f555ca3fb1b7269c26761e4d1 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 12 Dec 2021 06:52:33 +0200 Subject: [PATCH] fix twisterarmy edition selecting --- twister-cli-installer.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/twister-cli-installer.sh b/twister-cli-installer.sh index 3f04e1c..f8f6af8 100644 --- a/twister-cli-installer.sh +++ b/twister-cli-installer.sh @@ -92,12 +92,22 @@ function install() { read -rp "Chose twister edition [twisterarmy/miguelfreitas]: " -e EDITION done - git clone https://github.com/$EDITION/twister-core.git mkdir ~/.twister + touch ~/.twister/twister.conf chmod 600 ~/.twister/twister.conf git clone https://github.com/$EDITION/twister-html.git ~/.twister/html - cd twister-core + if [[ $EDITION == "twisterarmy" ]]; then + cd ~/.twister/html + git checkout twisterarmy + fi + + git clone https://github.com/$EDITION/twister-core.git ~/twister-core + cd ~/twister-core + + if [[ $EDITION == "twisterarmy" ]]; then + git checkout twisterarmy + fi until [[ $USER_NAME != "" ]]; do read -rp "Enter RPC username: " -e USER_NAME