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:
ericagar 2011-09-27 00:52:33 +00:00
parent 9f54174b52
commit ad7ed2714f

View File

@ -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