From 3c791aee369ff2890a92018995e996dc870a5478 Mon Sep 17 00:00:00 2001 From: Darkatse <39111369+Darkatse@users.noreply.github.com> Date: Wed, 16 Sep 2026 12:59:24 +0800 Subject: [PATCH] fix(installer): support Debian rolling releases (#260) --- scripts/install-linux.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/install-linux.sh b/scripts/install-linux.sh index 5fe089e5..28fccad4 100755 --- a/scripts/install-linux.sh +++ b/scripts/install-linux.sh @@ -250,6 +250,7 @@ detect_system() { ID="" VERSION_ID="" + VERSION_CODENAME="" PRETTY_NAME="" # /etc/os-release is supplied by the operating system and is the canonical # distribution identity used by the supported package managers. @@ -266,10 +267,13 @@ detect_system() { case "$ID" in debian) - [ -n "${VERSION_ID:-}" ] || die "Debian VERSION_ID is missing." - numeric_version_parts "$VERSION_ID" - [ "$VERSION_MAJOR" -ge 12 ] || - die "Debian $VERSION_ID is unsupported; Debian 12 or later is required." + if [ -n "${VERSION_ID:-}" ]; then + numeric_version_parts "$VERSION_ID" + [ "$VERSION_MAJOR" -ge 12 ] || + die "Debian $VERSION_ID is unsupported; Debian 12 or later is required." + else + print_warning "Debian ${VERSION_CODENAME:-testing/unstable} does not report VERSION_ID; continuing as a rolling release." + fi PACKAGE_SYSTEM="apt" ;; ubuntu)