feat(checks): accept Ubuntu 26.04 as a tested version

Ubuntu 26.04 hit the "untested and may not be fully supported" prompt
and blocked non-interactive installs. Add it to the supported list.

Also escape the dots in the version alternation — unescaped they matched
any character, so e.g. "18X04" was treated as a tested release.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
librelad 2026-08-01 10:49:14 +01:00
parent 728830f74d
commit 4f5a803ee4

View File

@ -32,8 +32,8 @@ detectOS() {
isNotice "Detected OS: $OS_TYPE $OS_VERSION"
# Check if this is a tested/supported version
if [[ ("$OS_TYPE" == "Debian" && ! "$OS_VERSION" =~ ^(10|11|12|13)$) ||
("$OS_TYPE" == "Ubuntu" && ! "$OS_VERSION" =~ ^(18.04|20.04|22.04)$) ]]; then
if [[ ("$OS_TYPE" == "Debian" && ! "$OS_VERSION" =~ ^(10|11|12|13)$) ||
("$OS_TYPE" == "Ubuntu" && ! "$OS_VERSION" =~ ^(18\.04|20\.04|22\.04|26\.04)$) ]]; then
isNotice "This OS version ($OS_VERSION) is untested and may not be fully supported."
while true; do
read -rp "Do you wish to continue anyway? (y/n): " oswarningaccept