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