From cb04d74a040b022a46b0940e8c25a72a9678f1a6 Mon Sep 17 00:00:00 2001 From: Maxim Date: Thu, 9 Apr 2015 16:27:23 -0500 Subject: [PATCH] Create install.sh --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..8beb741 --- /dev/null +++ b/install.sh @@ -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