Just check $MATCH, don't eval

This commit is contained in:
Joey Hafner 2022-08-18 10:54:50 -07:00
parent 30eafd57ac
commit fb62308171

View File

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