Debug return values

This commit is contained in:
Joey Hafner 2022-08-18 10:52:31 -07:00
parent 79f468ae1a
commit 2dbf90a5ab

View File

@ -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