From 4656712570fcf2167c6153dd3c3a9921475d7048 Mon Sep 17 00:00:00 2001 From: aslezar <97354675+aslezar@users.noreply.github.com> Date: Sat, 21 Dec 2024 02:04:25 +0530 Subject: [PATCH] fix: parsing error in rocky 8.5 OS --- resources/server/bin/helpers/check-requirements-linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh index 8ef07a2fb1f05..f362a3921e5b7 100644 --- a/resources/server/bin/helpers/check-requirements-linux.sh +++ b/resources/server/bin/helpers/check-requirements-linux.sh @@ -31,7 +31,7 @@ MIN_GLIBCXX_VERSION="3.4.25" # Extract the ID value from /etc/os-release if [ -f /etc/os-release ]; then - OS_ID="$(cat /etc/os-release | grep -Eo 'ID=([^"]+)' | sed -n '1s/ID=//p')" + OS_ID="$(source /etc/os-release && echo $ID)" if [ "$OS_ID" = "nixos" ]; then echo "Warning: NixOS detected, skipping GLIBC check" exit 0