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