From 77d99a07e23d6f147d176fe1323350e819f6e16d Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 12 Apr 2012 19:26:55 +0000 Subject: [PATCH] fix defect in ospkgs git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/ospkgs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index 0a8354d7e..2651b1373 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -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