From aced188dc13c36bff91e3eacaa7a08ee96c76c67 Mon Sep 17 00:00:00 2001 From: pryme-svg Date: Tue, 27 Oct 2020 10:03:26 -0700 Subject: [PATCH] left the troubleshooting section in there --- Lightcord_installer.sh | 50 ++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/Lightcord_installer.sh b/Lightcord_installer.sh index 521f60d..d171563 100644 --- a/Lightcord_installer.sh +++ b/Lightcord_installer.sh @@ -29,7 +29,6 @@ printf "Please select\n"; printf "1: Install Lightcord\n"; printf "2: Uninstall Lightcord\n"; printf "3: Update Lightcord\n" -printf "4: Troubleshooting\n" printf "\n"; #Repeat only if the user hasn't entered an integer... @@ -43,7 +42,6 @@ do printf "1: Install Lightcord\n"; printf "2: Uninstall Lightcord\n"; printf "3: Update Lightcord\n" - printf "4: Troubleshooting\n" printf "\n"; fi done @@ -132,26 +130,26 @@ case $selection in printf "[$(tput setaf 10 && tput blink)FINISH$(tput sgr0)] Update complete\n"; ;; - 4) - printf "Please select\n"; - printf "1: \"/opt/Lightcord/Lightcord not found\"\n"; - printf "2: None of the above\n" - printf "\n"; - - #Repeat only if the user hasn't entered an integer... - while ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; - do - read troubleshooting_selection; - #if the entered value was not an integer, show this - if ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; then - sleep 1; - printf "$(tput setaf 9)Please try again$(tput sgr0)\n"; - printf "1: \"/opt/Lightcord/Lightcord not found\"\n"; - printf "2: None of the above\n" - printf "\n"; - fi - done - +# 4) +# printf "Please select\n"; +# printf "1: \"/opt/Lightcord/Lightcord not found\"\n"; +# printf "2: None of the above\n" +# printf "\n"; +# +# #Repeat only if the user hasn't entered an integer... +# while ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; +# do +# read troubleshooting_selection; +# #if the entered value was not an integer, show this +# if ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; then +# sleep 1; +# printf "$(tput setaf 9)Please try again$(tput sgr0)\n"; +# printf "1: \"/opt/Lightcord/Lightcord not found\"\n"; +# printf "2: None of the above\n" +# printf "\n"; +# fi +# done +# # case $troubleshooting_selection in # 1) # printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Modifying /usr/share/applications/Lightcord.desktop$(tput sgr0)\n"; @@ -170,8 +168,8 @@ case $selection in # esac # ;; # -# *) -# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n"; -# ;; -#esac + *) + printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n"; + ;; +esac \ No newline at end of file