From ca4a3ecef281590b6fac3c98339f7ac91e57f27c Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 16 Jun 2023 07:48:54 -0400 Subject: [PATCH] Update build.func add option to choose Debian version --- misc/build.func | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index 06e34b59..9d59ada1 100644 --- a/misc/build.func +++ b/misc/build.func @@ -143,8 +143,19 @@ advanced_settings() { fi if [ "$var_os" == "debian" ]; then - var_version="11" - echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}" + var_version="" + while [ -z "$var_version" ]; do + if var_version=$(whiptail --title "DEBIAN VERSION" --radiolist "Choose Version" 10 58 2 \ + "11" "Bullseye" OFF \ + "12" "Bookworm" OFF \ + 3>&1 1>&2 2>&3); then + if [ -n "$var_version" ]; then + echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}" + fi + else + exit-script + fi + done fi if [ "$var_os" == "ubuntu" ]; then