From 7115073da4eef8966bdae210fb25395f0f591d93 Mon Sep 17 00:00:00 2001 From: jgaunt Date: Tue, 10 Mar 2020 15:38:43 -0400 Subject: [PATCH] Update 'update.sh' --- update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index bccc047..26d9c62 100644 --- a/update.sh +++ b/update.sh @@ -18,11 +18,11 @@ fi # going to use hostnamectl and awk for this test # get OS ditro and version -OS=$(hostnameclt | awk '/Operating System/ {print $3}') +OS=$(hostnamectl | awk '/Operating System/ {print $3}') if [ ${OS} == 'Ubuntu' ]; then - OS_VER=$(hostnameclt | awk '/Operating System/ {print $4}') + OS_VER=$(hostnamectl | awk '/Operating System/ {print $4}') else - OS_VER=$(hostnameclt | awk '/Operating System/ {print $5}') + OS_VER=$(hostnamectl | awk '/Operating System/ {print $5}') fi # Debian OS