Update test.sh
This commit is contained in:
6
test.sh
6
test.sh
@@ -18,9 +18,9 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${NODEHOSTS}"* ]]; then
|
||||
echo 'not a node'
|
||||
else
|
||||
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${NODEHOSTS}"* ]]; then
|
||||
echo 'is a node'
|
||||
else
|
||||
echo 'not a node'
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user