From 3df6f15f0e6f87899b9431b8656550f7c871126d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 24 Jun 2024 12:01:44 +0200 Subject: [PATCH] seds --- pidd.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pidd.sh b/pidd.sh index d0d0b75..b0f4247 100644 --- a/pidd.sh +++ b/pidd.sh @@ -73,13 +73,16 @@ pidd_set_environment_variables() { # set operating system version case "${PIDD_OS_ID}" in "${PIDD_OS_ALMA}" | "${PIDD_OS_ARCH}" | "${PIDD_OS_FEDORA}" | "${PIDD_OS_ROCKY}") - PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID \ - | sed "s|^\([0-9]\+\)\..*|\1|") ;; + PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID | + sed "s|^\([0-9]\+\)\..*|\1|") + ;; "${PIDD_OS_ALPINE}") - PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID \ - | sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|") ;; + PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID | + sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|") + ;; "${PIDD_OS_DEBIAN}" | "${PIDD_OS_UBUNTU}") - PIDD_OS_VERSION="$(pidd_grep_os VERSION_CODENAME)" ;; + PIDD_OS_VERSION="$(pidd_grep_os VERSION_CODENAME)" + ;; *) ;; esac # check operating system version