Shellmen/install.sh

18 lines
359 B
Bash
Raw Normal View History

2015-04-09 21:27:23 +00:00
#!/bin/bash
main(){
clear
read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT
if [ "$INPUT" == 1 ]; then
2015-04-09 21:31:12 +00:00
sudo cp shellMen /bin/
sudo chown root:root /bin/shellMen
sudo chmod +x /bin/shellMen
2015-04-09 21:27:23 +00:00
elif [ "$INPUT" == 2 ]; then
2015-04-09 21:31:12 +00:00
sudo rm /bin/shellMen
2015-04-09 21:27:23 +00:00
elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then
echo "Please type 1 or 2."
main
fi
}
main