Evaluate command, don't run it

This commit is contained in:
Joey Hafner 2022-08-18 10:50:47 -07:00
parent b8971fa34b
commit 79f468ae1a

View File

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