fix twisterarmy edition selecting

This commit is contained in:
ghost 2021-12-12 06:52:33 +02:00
parent f37ac80cf5
commit 9cae879f81

View File

@ -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