From e3a791820a24e5616897f6a799b76ed299864ba1 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 12 Dec 2021 06:23:05 +0200 Subject: [PATCH] add twister edition select --- twister-cli-installer.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/twister-cli-installer.sh b/twister-cli-installer.sh index 6f4f7ff..029398f 100644 --- a/twister-cli-installer.sh +++ b/twister-cli-installer.sh @@ -88,17 +88,14 @@ function install() { echo "" - until [[ $INSTALL =~ (y|n) ]]; do - read -rp "Install twister from the official sources? [y/n]: " -e INSTALL + until [[ $EDITION =~ (twisterarmy|miguelfreitas) ]]; do + read -rp "Chose twister edition [twisterarmy/miguelfreitas]: " -e EDITION done - if [[ $INSTALL == "n" ]]; then - exit 1 - fi - git clone https://github.com/miguelfreitas/twister-core.git + git clone https://github.com/$EDITION/twister-core.git mkdir ~/.twister chmod 600 ~/.twister/twister.conf - git clone https://github.com/miguelfreitas/twister-html.git ~/.twister/html + git clone https://github.com/$EDITION/twister-html.git ~/.twister/html cd twister-core @@ -170,4 +167,3 @@ function install() { initialCheck install -