Both $ipaddrs and $node can hold multiple strings, so use "" to brace them.
Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
---
kdumpctl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdumpctl b/kdumpctl
index 3f6a9be..2e7f842 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -944,7 +944,7 @@ check_fence_kdump_config()
return 1
fi
# node can be ipaddr
- echo $ipaddrs | grep $node > /dev/null
+ echo "$ipaddrs " | grep "$node " > /dev/null
if [ $? -eq 0 ]; then
derror "Option fence_kdump_nodes cannot contain $node"
return 1
--
2.7.5