mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-30 16:10:29 +10:00
Update installbeta.sh
This commit is contained in:
+2
-2
@@ -50,8 +50,8 @@ done
|
|||||||
# Function to get user selections
|
# Function to get user selections
|
||||||
get_user_selection() {
|
get_user_selection() {
|
||||||
local selections
|
local selections
|
||||||
# Use --output-fd 3 to capture output correctly and 3>&1 1>&2 2>&3 for proper fd redirection
|
# Execute whiptail and capture the output
|
||||||
selections=$(whiptail "${whiptail_command[@]}" --output-fd 3 3>&1 1>&2 2>&3)
|
selections=$( "${whiptail_command[@]}" )
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "INFO No options selected. Exiting."
|
echo "INFO No options selected. Exiting."
|
||||||
|
|||||||
Reference in New Issue
Block a user