get "bionic" from output

This commit is contained in:
Daniel Hansson 2018-07-10 08:30:23 +02:00 committed by GitHub
parent 124b0fdd42
commit ceb3d2ade6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
lib.sh
View File

@ -330,7 +330,7 @@ fi
check_distro_version() {
# Check Ubuntu version
echo "Checking server OS and version..."
if uname -v | grep -ic "bionic"
if uname -a | grep -ic "bionic"
then
OS=1
elif uname -v | grep -ic "Ubuntu"