From ee403a74d368d52ea072d27b251c53fc654e1465 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:31:14 +0200 Subject: [PATCH] Update install.func --- misc/install.func | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/install.func b/misc/install.func index cda70266..954fa2fa 100644 --- a/misc/install.func +++ b/misc/install.func @@ -1102,8 +1102,10 @@ EOF local os_version="$OS_VERSION" if [[ -f /etc/os-release ]]; then - os_name=$(grep ^NAME /etc/os-release | cut -d= -f2 | tr -d '"') - os_version=$(grep ^VERSION_ID /etc/os-release | cut -d= -f2 | tr -d '"') + os_name=$(grep ^NAME /etc/os-release | cut -d= -f2 | tr -d '"' || true) + os_version=$(grep ^VERSION_ID /etc/os-release | cut -d= -f2 | tr -d '"' || true) + [[ -z "$os_name" ]] && os_name="$OS_TYPE" + [[ -z "$os_version" ]] && os_version="${OS_VERSION:-rolling}" fi # Create MOTD profile script