left the troubleshooting section in there

This commit is contained in:
pryme-svg 2020-10-27 10:03:26 -07:00
parent 3eabbde2fa
commit aced188dc1
1 changed files with 24 additions and 26 deletions

View File

@ -29,7 +29,6 @@ printf "Please select\n";
printf "1: Install Lightcord\n"; printf "1: Install Lightcord\n";
printf "2: Uninstall Lightcord\n"; printf "2: Uninstall Lightcord\n";
printf "3: Update Lightcord\n" printf "3: Update Lightcord\n"
printf "4: Troubleshooting\n"
printf "\n"; printf "\n";
#Repeat only if the user hasn't entered an integer... #Repeat only if the user hasn't entered an integer...
@ -43,7 +42,6 @@ do
printf "1: Install Lightcord\n"; printf "1: Install Lightcord\n";
printf "2: Uninstall Lightcord\n"; printf "2: Uninstall Lightcord\n";
printf "3: Update Lightcord\n" printf "3: Update Lightcord\n"
printf "4: Troubleshooting\n"
printf "\n"; printf "\n";
fi fi
done done
@ -132,26 +130,26 @@ case $selection in
printf "[$(tput setaf 10 && tput blink)FINISH$(tput sgr0)] Update complete\n"; printf "[$(tput setaf 10 && tput blink)FINISH$(tput sgr0)] Update complete\n";
;; ;;
4) # 4)
printf "Please select\n"; # printf "Please select\n";
printf "1: \"/opt/Lightcord/Lightcord not found\"\n"; # printf "1: \"/opt/Lightcord/Lightcord not found\"\n";
printf "2: None of the above\n" # printf "2: None of the above\n"
printf "\n"; # printf "\n";
#
#Repeat only if the user hasn't entered an integer... # #Repeat only if the user hasn't entered an integer...
while ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; # while ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]];
do # do
read troubleshooting_selection; # read troubleshooting_selection;
#if the entered value was not an integer, show this # #if the entered value was not an integer, show this
if ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; then # if ! [[ $troubleshooting_selection =~ ^[0-9]+$ ]]; then
sleep 1; # sleep 1;
printf "$(tput setaf 9)Please try again$(tput sgr0)\n"; # printf "$(tput setaf 9)Please try again$(tput sgr0)\n";
printf "1: \"/opt/Lightcord/Lightcord not found\"\n"; # printf "1: \"/opt/Lightcord/Lightcord not found\"\n";
printf "2: None of the above\n" # printf "2: None of the above\n"
printf "\n"; # printf "\n";
fi # fi
done # done
#
# case $troubleshooting_selection in # case $troubleshooting_selection in
# 1) # 1)
# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Modifying /usr/share/applications/Lightcord.desktop$(tput sgr0)\n"; # 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 # esac
# ;; # ;;
# #
# *) *)
# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n"; printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n";
# ;; ;;
#esac esac