diff --git a/homelab/server/scripts/nas_down.sh b/homelab/server/scripts/nas_down.sh index 6a6e23ed..da183833 100755 --- a/homelab/server/scripts/nas_down.sh +++ b/homelab/server/scripts/nas_down.sh @@ -6,7 +6,7 @@ do CONTAINER_MOUNTS=$(docker inspect --format '{{range .Mounts}}{{println .Source}}{{end}}' $CONTAINER_ID) # print the container's volume mounts echo "======== CHECKING $CONTAINER_NAME ========" echo "$CONTAINER_MOUNTS" | grep /mnt/nas - if $?; then + if [ $? ]; then echo "NAS DEPENDENT" else echo "NOT NAS DEPENDENT"