different whiptail warning if ubuntu 20.04

This commit is contained in:
m0duspwnens committed 2023-07-17 15:56:29 -04:00
1 parent 425ca35a22
commit 5d4186ac07
3 files changed
+36 -5

No files matched your search

+13 -4
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