From fb62308171dfeeca52196c8c2a71090e31fc3fe9 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 18 Aug 2022 10:54:50 -0700 Subject: [PATCH] Just check $MATCH, don't eval --- server/scripts/nas_down.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/nas_down.sh b/server/scripts/nas_down.sh index a3a59be..5ac6b40 100755 --- a/server/scripts/nas_down.sh +++ b/server/scripts/nas_down.sh @@ -7,7 +7,7 @@ do echo "======== CHECKING $CONTAINER_NAME ========" echo "$CONTAINER_MOUNTS" | grep /mnt/nas MATCH=$? - if [ $MATCH ]; then + if $MATCH; then echo "NAS DEPENDENT" else echo "NOT NAS DEPENDENT"