Update build.func

add default distribution message box
pull/1365/head
tteckster 2023-04-25 05:51:55 -04:00 committed by GitHub
parent 22300b0c4d
commit 70d51d964d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -112,10 +112,11 @@ exit-script() {
}
advanced_settings() {
whiptail --msgbox --title "Default distribution for $APP" "${var_os} \n${var_version} \n" 8 58
if [ "$var_os" != "alpine" ]; then
var_os=""
while [ -z "$var_os" ]; do
if var_os=$(whiptail --title "DISTRIBUTION" --radiolist "Choose" 10 58 2 \
if var_os=$(whiptail --title "DISTRIBUTION" --radiolist "Choose Distribution:" 10 58 2 \
"debian" "" OFF \
"ubuntu" "" OFF \
3>&1 1>&2 2>&3); then