Safer numberic test, accounting for variable not defined.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9f54174b52
commit
ad7ed2714f
@ -44,7 +44,7 @@ if [ "$OS_TYPE" != "Linux" ]; then
|
||||
fi
|
||||
|
||||
# This command only runs by updatenode command
|
||||
if [ "$UPDATENODE" -ne 1 ]; then
|
||||
if [ -z "$UPDATENODE" ] || [ $UPDATENODE -ne 1 ]; then
|
||||
echo " Did not install any extra rpms."
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user