Be more specific in the menu choices

This commit is contained in:
the-sane 2020-08-03 22:04:27 -04:00 committed by GitHub
parent e3116dae4f
commit 3f91a77fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,7 @@ set_map_count() {
############################################################################ ############################################################################
# MAIN # MAIN
############################################################################ ############################################################################
clear
# Check if Zenity is available # Check if Zenity is available
has_zen=0 has_zen=0
@ -279,7 +280,7 @@ fi
# Use Zenity if it is available # Use Zenity if it is available
if [ "$has_zen" -eq 1 ]; then if [ "$has_zen" -eq 1 ]; then
check="Check my system settings for optimal performance" check="Check vm.max_map_count for optimal performance"
clean="Delete my USER folder and preserve my keybinds" clean="Delete my USER folder and preserve my keybinds"
list=("TRUE" "$check" "FALSE" "$clean") list=("TRUE" "$check" "FALSE" "$clean")
@ -298,7 +299,7 @@ else
# Use a text menu if Zenity is not available # Use a text menu if Zenity is not available
echo -e "\nWelcome, fellow penguin, to the Star Citizen Linux Users Group Helper Script!\nWhat would you like to do?\n" echo -e "\nWelcome, fellow penguin, to the Star Citizen Linux Users Group Helper Script!\nWhat would you like to do?\n"
options=("Check my system settings for optimal performance" "Delete my USER folder and preserve my keybinds") options=("Check vm.max_map_count for optimal performance" "Delete my USER folder and preserve my keybinds")
PS3="Enter selection number or 'q' to quit: " PS3="Enter selection number or 'q' to quit: "
select choice in "${options[@]}" select choice in "${options[@]}"