Browse Source

add twister edition select

main
ghost 3 years ago
parent
commit
e3a791820a
  1. 12
      twister-cli-installer.sh

12
twister-cli-installer.sh

@ -88,17 +88,14 @@ function install() { @@ -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() { @@ -170,4 +167,3 @@ function install() {
initialCheck
install

Loading…
Cancel
Save