From 731d8226e71f647f7ee1e4b2064ef2fcdc6a4e79 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 18 Aug 2022 10:53:37 -0700 Subject: [PATCH] Evalutate $MATCH --- homelab/server/scripts/nas_down.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homelab/server/scripts/nas_down.sh b/homelab/server/scripts/nas_down.sh index a83d8e01..a3a59bea 100755 --- a/homelab/server/scripts/nas_down.sh +++ b/homelab/server/scripts/nas_down.sh @@ -7,5 +7,9 @@ do echo "======== CHECKING $CONTAINER_NAME ========" echo "$CONTAINER_MOUNTS" | grep /mnt/nas MATCH=$? - echo $MATCH + if [ $MATCH ]; then + echo "NAS DEPENDENT" + else + echo "NOT NAS DEPENDENT" + fi done \ No newline at end of file