diff --git a/server/scripts/nas_down.sh b/server/scripts/nas_down.sh index a3a59be..5ac6b40 100755 --- a/server/scripts/nas_down.sh +++ b/server/scripts/nas_down.sh @@ -7,7 +7,7 @@ do echo "======== CHECKING $CONTAINER_NAME ========" echo "$CONTAINER_MOUNTS" | grep /mnt/nas MATCH=$? - if [ $MATCH ]; then + if $MATCH; then echo "NAS DEPENDENT" else echo "NOT NAS DEPENDENT"