From ad7ed2714f8abea8d78ca69191067d11f819d9eb Mon Sep 17 00:00:00 2001 From: ericagar Date: Tue, 27 Sep 2011 00:52:33 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/ospkgs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index 2528fa33a..cf094c544 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -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