Just check $MATCH, don't eval
This commit is contained in:
parent
30eafd57ac
commit
fb62308171
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user