From c943d7239c0072f3b9f32b909b80403c2400473f Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 22 Dec 2010 05:54:07 +0000 Subject: [PATCH] defect 3138422: make the value of export expression OSPKGS,OTHERPKGSx to be quoted so that shell can parse it correctly git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8499 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 1431baa15..504306b3b 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -434,7 +434,7 @@ sub makescript my $pkgtext = get_pkglist_tex($ospkglist); if ($pkgtext) { - push @scriptd, "OSPKGS=$pkgtext\n"; + push @scriptd, "OSPKGS='".$pkgtext."'\n"; push @scriptd, "export OSPKGS\n"; } } @@ -449,7 +449,7 @@ sub makescript foreach (@sublists) { $sl_index++; - push @scriptd, "OTHERPKGS$sl_index=$_\n"; + push @scriptd, "OTHERPKGS$sl_index='".$_."'\n"; push @scriptd, "export OTHERPKGS$sl_index\n"; } if ($sl_index > 0)