different whiptail warning if ubuntu 20.04

This commit is contained in:
m0duspwnens
2023-07-17 15:56:29 -04:00
parent 425ca35a22
commit 5d4186ac07
3 changed files with 36 additions and 5 deletions

View File

@@ -69,11 +69,20 @@ detect_os
set_palette >> $setup_log 2>&1
if [[ $not_supported ]]; then
if (whiptail_unsupported_os_warning); then
true
if [[ "$OSVER" == "focal" ]]; then
if (whiptail_focal_warning); then
true
else
info "User cancelled setup."
whiptail_cancel
fi
else
info "User cancelled setup."
whiptail_cancel
if (whiptail_unsupported_os_warning); then
true
else
info "User cancelled setup."
whiptail_cancel
fi
fi
fi