From 06c9b85d4ea4a4c55c04cc51fc7d99026eb8e4a6 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 10 Aug 2018 09:26:43 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index a16daf6..a85ee02 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1661,13 +1661,12 @@ fi_auth esac done PRECHECK_FN(){ -fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) -Centoss=$( hostnamectl | grep -i Operating | awk '{print $3}' ) -if [ "$fedoras" = "Fedora" ] +TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1 +if [ "$TheOS" = "Fedora" ] then YUM_MENU else -if [ "$Centoss" = "CentOS" ] +if [ "$TheOS" = "CentOS" ] then YUM_MENU else @@ -1676,4 +1675,3 @@ fi fi } PRECHECK_FN -