diff --git a/install.sh b/install.sh index cab444e..5215e15 100755 --- a/install.sh +++ b/install.sh @@ -2,16 +2,17 @@ main(){ clear -read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT -if [ "$INPUT" == 1 ]; then - sudo cp shellMen /bin/ - sudo chown root:root /bin/shellMen - sudo chmod +x /bin/shellMen -elif [ "$INPUT" == 2 ]; then - sudo rm /bin/shellMen -elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then -echo "Please type 1 or 2." -main -fi + + read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT + if [ "$INPUT" == 1 ]; then + sudo cp shellMen /bin/ + sudo chown root:root /bin/shellMen + sudo chmod +x /bin/shellMen + elif [ "$INPUT" == 2 ]; then + sudo rm /bin/shellMen + elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then + echo "Please type 1 or 2." + main + fi } main