From f1c522389b5d595d48ebd41c22185ea2d2fafe79 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 18 Aug 2022 10:57:09 -0700 Subject: [PATCH] If $MATCH == 0 --- homelab/server/scripts/nas_down.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homelab/server/scripts/nas_down.sh b/homelab/server/scripts/nas_down.sh index 3652f7e6..3d6a4202 100755 --- a/homelab/server/scripts/nas_down.sh +++ b/homelab/server/scripts/nas_down.sh @@ -8,7 +8,7 @@ do echo "$CONTAINER_MOUNTS" | grep /mnt/nas MATCH=$? echo "$MATCH" - if $MATCH; then + if [ $MATCH == 0 ]; then echo "NAS DEPENDENT" else echo "NOT NAS DEPENDENT"