Cleaned up code by a lot. Smaller file size....
This commit is contained in:
parent
d19ee08fb6
commit
4129854d57
23
install.sh
23
install.sh
|
@ -2,16 +2,17 @@
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
clear
|
clear
|
||||||
read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT
|
|
||||||
if [ "$INPUT" == 1 ]; then
|
read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT
|
||||||
sudo cp shellMen /bin/
|
if [ "$INPUT" == 1 ]; then
|
||||||
sudo chown root:root /bin/shellMen
|
sudo cp shellMen /bin/
|
||||||
sudo chmod +x /bin/shellMen
|
sudo chown root:root /bin/shellMen
|
||||||
elif [ "$INPUT" == 2 ]; then
|
sudo chmod +x /bin/shellMen
|
||||||
sudo rm /bin/shellMen
|
elif [ "$INPUT" == 2 ]; then
|
||||||
elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then
|
sudo rm /bin/shellMen
|
||||||
echo "Please type 1 or 2."
|
elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then
|
||||||
main
|
echo "Please type 1 or 2."
|
||||||
fi
|
main
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue