Create install.sh

This commit is contained in:
Maxim 2015-04-09 16:27:23 -05:00
parent 22e92f782e
commit cb04d74a04
1 changed files with 17 additions and 0 deletions

17
install.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
main(){
clear
read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT
if [ "$INPUT" == 1 ]; then
sudo cp shellMen.sh /bin/
sudo chown root:root /bin/shellMen.sh
sudo chmod +x /bin/shellMen.sh
elif [ "$INPUT" == 2 ]; then
sudo rm /bin/shellMen.sh
elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then
echo "Please type 1 or 2."
main
fi
}
main