fix installer menu
This commit is contained in:
@@ -103,7 +103,8 @@ options+=("Quit") # Add a Quit option to the menu.
|
|||||||
PS3="Please enter your choice: "
|
PS3="Please enter your choice: "
|
||||||
|
|
||||||
# Display the menu and handle user input.
|
# Display the menu and handle user input.
|
||||||
select choice_with_status in "${options[@]}"; do
|
# Setting COLUMNS=1 forces the select menu to display vertically.
|
||||||
|
COLUMNS=1 select choice_with_status in "${options[@]}"; do
|
||||||
# Strip the status message from the choice for key lookup
|
# Strip the status message from the choice for key lookup
|
||||||
choice=$(echo "${choice_with_status}" | sed 's/ (.*//')
|
choice=$(echo "${choice_with_status}" | sed 's/ (.*//')
|
||||||
|
|
||||||
@@ -180,3 +181,4 @@ select choice_with_status in "${options[@]}"; do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user