diff --git a/homelab/server/scripts/nas_down.sh b/homelab/server/scripts/nas_down.sh index da183833..a83d8e01 100755 --- a/homelab/server/scripts/nas_down.sh +++ b/homelab/server/scripts/nas_down.sh @@ -6,9 +6,6 @@ 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 - echo "NAS DEPENDENT" - else - echo "NOT NAS DEPENDENT" - fi + MATCH=$? + echo $MATCH done \ No newline at end of file