From 05b5705c3ffb1af2e6b7653615f0142e395a9694 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 18 Jul 2018 19:24:48 +0100 Subject: [PATCH] corrected distroid --- lgsm/functions/info_distro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh index cd3f4b6ee..7d11d50b6 100644 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -56,7 +56,7 @@ do elif [ -z "${distroversion}" ];then distroversion=$(rpm -qa \*-release | grep -Ei "oracle|redhat|centos|fedora" | cut -d"-" -f3) elif [ -z "${distroid}" ];then - distroid="$(wk '{print $1;}' /etc/redhat-release)" + distroid="$(awk '{print $1}' /etc/redhat-release)" fi fi done