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 "======== CHECKING $CONTAINER_NAME ========"
|
||||||
echo "$CONTAINER_MOUNTS" | grep /mnt/nas
|
echo "$CONTAINER_MOUNTS" | grep /mnt/nas
|
||||||
MATCH=$?
|
MATCH=$?
|
||||||
if [ $MATCH ]; then
|
if $MATCH; then
|
||||||
echo "NAS DEPENDENT"
|
echo "NAS DEPENDENT"
|
||||||
else
|
else
|
||||||
echo "NOT NAS DEPENDENT"
|
echo "NOT NAS DEPENDENT"
|
||||||
|
Loading…
Reference in New Issue
Block a user