Update build.func
This commit is contained in:
parent
16120db26f
commit
c8e7ad6e54
@ -977,8 +977,9 @@ install_script() {
|
|||||||
header_info
|
header_info
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" \
|
TMP_CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" \
|
||||||
20 60 7 \
|
--title "SETTINGS" \
|
||||||
|
--menu "Choose an option:" 20 60 7 \
|
||||||
"1" "Default Settings" \
|
"1" "Default Settings" \
|
||||||
"2" "Default Settings (with verbose)" \
|
"2" "Default Settings (with verbose)" \
|
||||||
"3" "Advanced Settings" \
|
"3" "Advanced Settings" \
|
||||||
@ -986,13 +987,15 @@ install_script() {
|
|||||||
"5" "Manage Default Storage" \
|
"5" "Manage Default Storage" \
|
||||||
"6" "Diagnostic Settings" \
|
"6" "Diagnostic Settings" \
|
||||||
"7" "Exit" \
|
"7" "Exit" \
|
||||||
--default-item "1" 3>&1 1>&2 2>&3)
|
--default-item "1" 3>&1 1>&2 2>&3) || true
|
||||||
|
|
||||||
if [ $? -ne 0 ] || [ -z "$CHOICE" ]; then
|
if [ -z "$TMP_CHOICE" ]; then
|
||||||
echo -e "${CROSS}${RD}Menu canceled. Exiting.${CL}"
|
echo -e "\n${CROSS}${RD}Menu canceled (ESC pressed). Exiting script.${CL}\n"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CHOICE="$TMP_CHOICE"
|
||||||
|
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
1)
|
1)
|
||||||
header_info
|
header_info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user