Update 'update.sh'

This commit is contained in:
2020-03-10 15:38:43 -04:00
parent 19dcfa4b91
commit 7115073da4

View File

@@ -18,11 +18,11 @@ fi
# going to use hostnamectl and awk for this test # going to use hostnamectl and awk for this test
# get OS ditro and version # get OS ditro and version
OS=$(hostnameclt | awk '/Operating System/ {print $3}') OS=$(hostnamectl | awk '/Operating System/ {print $3}')
if [ ${OS} == 'Ubuntu' ]; then if [ ${OS} == 'Ubuntu' ]; then
OS_VER=$(hostnameclt | awk '/Operating System/ {print $4}') OS_VER=$(hostnamectl | awk '/Operating System/ {print $4}')
else else
OS_VER=$(hostnameclt | awk '/Operating System/ {print $5}') OS_VER=$(hostnamectl | awk '/Operating System/ {print $5}')
fi fi
# Debian OS # Debian OS