Update RogueSploit

This commit is contained in:
Francesco Grotti
2016-12-19 15:42:36 +01:00
committed by GitHub
parent 55f0eb6120
commit 0fa6cd4c7a

View File

@@ -209,16 +209,20 @@ elif test $answer1 == '7'
then
echo -ne $red"This update will delete everything in this directory, continue anyway? [y/N] "; tput sgr0
read cancel
if [ $cancel == 'y' ] && [ $cancel == 'Y' ]
if [ $cancel != 'n' ] && [ $cancel != 'N' ]
then
echo -e $yellow"Updating RogueSploit, just wait...."
cd ../ && sudo rm -rf RogueSploit/
git clone http://github.com/b4ckp0r7/RogueSploit.git
sudo chmod 777 RogueSploit/* -R
echo -e $yellow"Update.."; sleep 2; echo -e $lightgreen"* DONE *"
exit
else
echo -e $red"Update aborted! Returning main menu in 5 secs!"
sleep 5
menu
elif [ $cancel != 'y' ] && [ $cancel != 'Y' ]
then
echo -e $red"Update aborted! Returning main menu in 5 secs!"
sleep 5
menu
fi
else
echo -e $red"[!] Incorrect Number [!]"
echo -n -e $yellow" Do you want exit? ( Yes / No ) :"
@@ -352,16 +356,20 @@ elif test $answer1 == '7'
then
echo -ne $red"This update will delete everything in this directory, continue anyway? [y/N] "; tput sgr0
read cancel
if [ $cancel == 'y' ] && [ $cancel == 'Y' ]
if [ $cancel != 'n' ] && [ $cancel != 'N' ]
then
echo -e $yellow"Updating RogueSploit, just wait...."
cd ../ && sudo rm -rf RogueSploit/
git clone http://github.com/b4ckp0r7/RogueSploit.git
sudo chmod 777 RogueSploit/* -R
echo -e $yellow"Update.."; sleep 2; echo -e $lightgreen"* DONE *"
exit
else
echo -e $red"Update aborted! Returning main menu in 5 secs!"
sleep 5
menu
elif [ $cancel != 'y' ] && [ $cancel != 'Y' ]
then
echo -e $red"Update aborted! Returning main menu in 5 secs!"
sleep 5
menu
fi
else
echo -e $red"[!] Incorrect Number [!]"
echo -n -e $yellow" Do you want exit? ( Yes / No ) :"