From 10e9ad34f765044631a03f68181c306e9a5eaadc Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 18 Aug 2022 10:39:30 -0700 Subject: [PATCH] Syntax error --- homelab/server/scripts/nas_down.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homelab/server/scripts/nas_down.sh b/homelab/server/scripts/nas_down.sh index a5cac977..4502b3c2 100755 --- a/homelab/server/scripts/nas_down.sh +++ b/homelab/server/scripts/nas_down.sh @@ -5,7 +5,7 @@ do CONTAINER_NAME=$(docker ps -aq --filter "id=$CONTAINER_ID" --format '{{.Names}}') # get the container's name CONTAINER_MOUNTS=$(docker inspect --format '{{range .Mounts}}{{println .Source}}{{end}}' $CONTAINER_ID) # print the container's volume mounts echo "======== CHECKING $CONTAINER_NAME ========" - if $(echo "$CONTAINER_MOUNTS" | grep /mnt/nas) + if $(echo "$CONTAINER_MOUNTS" | grep /mnt/nas); then echo "IS NAS DEPENDENT" else echo "IS NOT NAS DEPENDENT"