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() {
echo "" echo ""
until [[ $INSTALL =~ (y|n) ]]; do until [[ $EDITION =~ (twisterarmy|miguelfreitas) ]]; do
read -rp "Install twister from the official sources? [y/n]: " -e INSTALL read -rp "Chose twister edition [twisterarmy/miguelfreitas]: " -e EDITION
done 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 mkdir ~/.twister
chmod 600 ~/.twister/twister.conf 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 cd twister-core
@ -170,4 +167,3 @@ function install() {
initialCheck initialCheck
install install

Loading…
Cancel
Save