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