Update test.sh
This commit is contained in:
2
test.sh
2
test.sh
@@ -22,7 +22,7 @@ IP=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
|
||||
IP=${IP//$'\n'/}; IP=$(echo $IP | sed "s/10.5.10.56//g")
|
||||
echo "'${IP}'"
|
||||
echo "'${NODEHOSTS}'"
|
||||
if [[ "${IP}" == *"${NODEHOSTS}"* ]]; then
|
||||
if [[ $IP == *"${NODEHOSTS}"* ]]; then
|
||||
echo 'is a node'
|
||||
else
|
||||
echo 'not a node'
|
||||
|
||||
Reference in New Issue
Block a user