From 0cee46802b4f7b298f1fefb3bad047be3d502203 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 31 Mar 2025 11:04:20 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misc/build.func b/misc/build.func index b1f0f07..f58df51 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1102,7 +1102,9 @@ select_distribution() { "ubuntu" "" off \ --extra-button --extra-label "Back" --ok-label "Next" --cancel-label "Exit" 3>&1 1>&2 2>&3) else - result=$(dialog --backtitle "[dev] Proxmox VE Helper Scripts" \ + exec 3>&1 + result=$(dialog \ + --backtitle "[dev] Proxmox VE Helper Scripts" \ --title "DISTRIBUTION" \ --radiolist "Choose Distribution:" 10 58 2 \ "debian" "" on \ @@ -1110,8 +1112,9 @@ select_distribution() { --ok-label "Next" \ --cancel-label "Exit" \ --extra-button --extra-label "Back" \ - 3>&1 1>&2 2>&3) - + 2>&1 1>&3) + exitcode=$? + exec 3>&- fi exitcode=$?