diff --git a/.scripts/check-service.sh b/.scripts/check-service.sh
index ad430b48f734fbe90405020141fe6866cf4c41a6..f5d144abaaac4ce6da02d1ffc2f5151f6329e14e 100755
--- a/.scripts/check-service.sh
+++ b/.scripts/check-service.sh
@@ -11,12 +11,12 @@ compare "services.$1.depends_on"
 compare "services.$1.healthcheck"
 compare "services.$1.logging"
 
-if [ ! -z "$IGNORE_IMAGE" ]; then
+if [ -z "$IGNORE_IMAGE" ]; then
   compare "services.$1.image"
 fi
-if [ ! -z "$IGNORE_VOLUMES" ]; then
+if [ -z "$IGNORE_VOLUMES" ]; then
   compare "services.$1.volumes"
 fi
-if [ ! -z "$IGNORE_PORTS" ]; then
+if [ -z "$IGNORE_PORTS" ]; then
   compare "services.$1.ports"
 fi