From f31051e568692e2c272522118e74416c53ddab1f Mon Sep 17 00:00:00 2001 From: Eric Park Date: Fri, 9 Feb 2024 14:06:42 -0500 Subject: [PATCH] fix(docker): fix docker version check --- docker/update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/update.sh b/docker/update.sh index e066c419..185a8557 100755 --- a/docker/update.sh +++ b/docker/update.sh @@ -8,9 +8,10 @@ setlatest # Check if version has been uploaded to GitHub Registry -docker pull ghcr.io/shipperstack/shipper-server:${VERSION_TAG} > /dev/null || \ - echo "The version hasn't been published yet! Try running the updater later."; \ - exit 1; +if ! docker pull ghcr.io/shipperstack/shipper-server:${VERSION_TAG} > /dev/null ; then + echo "The version hasn't been published yet! Try running the updater later." + exit 1 +fi # Start Docker images docker-compose up -d --no-build