From 35e217846de20b83baef206a3661d817b48f3a3c Mon Sep 17 00:00:00 2001 From: Steven Foerster Date: Wed, 14 Jul 2021 18:55:02 -0400 Subject: [PATCH] better comparison --- scripts/subinstallers/docker.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/subinstallers/docker.sh b/scripts/subinstallers/docker.sh index 623043c..8728378 100755 --- a/scripts/subinstallers/docker.sh +++ b/scripts/subinstallers/docker.sh @@ -9,13 +9,13 @@ sudo -E apt install -y python python3-pip python3-setuptools libffi-dev python3- # Ubuntu version >= 20.04 vercomp "$VERSION_ID" "19.10" -# case $? in -# 0) op='=';; -# 1) op='>';; -# 2) op='<';; -# esac +case $? in + 0) op='=';; + 1) op='>';; + 2) op='<';; +esac -if [ "$DISTRO" == "ubuntu" ] && [ "$?" == "1" ]; then +if [ "$DISTRO" == "ubuntu" ] && [ "$op" == ">" ]; then echo "Automated Docker install" sudo -E apt-get install -y docker-compose else