Skip to content

Commit

Permalink
Update build.func
Browse files Browse the repository at this point in the history
add option to choose Debian version
  • Loading branch information
tteck authored Jun 16, 2023
1 parent 72f3648 commit ca4a3ec
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions misc/build.func
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca4a3ec

Please sign in to comment.