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
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user