From c1ac6e5fbd9e7c29f1f933dff54b77ed5905bfca Mon Sep 17 00:00:00 2001 From: mr_ninja Date: Tue, 3 Oct 2023 10:11:36 +1100 Subject: [PATCH] Fix Docker version check condition. This fixes the incorrect evaluation of the installed Docker version variable. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 607fa8f20..e1d9df8a1 100755 --- a/install.sh +++ b/install.sh @@ -187,7 +187,7 @@ function do_docker_checks() { if command_exists docker; then DOCKER_VERSION_GOOD="false" DOCKER_VERSION=$(docker version -f "{{.Server.Version}}") - if [ ! -z "$DOCKER_VERSION" ]; then + if [ -z "$DOCKER_VERSION" ]; then echo "Error getting docker version. Error when running docker command. Check that docker is installed correctly." fi DOCKER_VERSION_MAJOR=$(echo "$DOCKER_VERSION"| cut -d'.' -f 1)