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"