fix defect in ospkgs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12227 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-04-12 19:25:09 +00:00
parent 6c70f1ce4e
commit 57244d37ef

View File

@ -115,6 +115,10 @@ pkgs_d='' #packages to remove
OIFS=$IFS
IFS=$(printf '\n')
if ( pmatch "$OSVER" "ubuntu*" ); then
IFS=$(printf '\n')
fi
for x in `echo "$OSPKGS" | tr "," "\n"`
do
#remove leading and trailing spaces