fix defect in ospkgs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-04-12 19:26:55 +00:00
parent d13d61f0f7
commit 77d99a07e2

View File

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