2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-01 00:57:37 +00:00

after discussion of bug 3309, not put the empty variable in the mypostscript file

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua
2013-01-24 01:13:22 +00:00
parent 150207c0d5
commit 278064041c

View File

@@ -1095,9 +1095,9 @@ sub subvars_for_mypostscript {
foreach $line ( @lines ) {
if( $line =~ /^([^#]+)=[\s]*$/ ) {
my $key=$1;
$inc =~ s/$key=([\s\n]+)/$key=''\n/g;
#$inc =~ s/$key=([\s\n]+)//g;
#$inc =~ s/export $key//g;
#$inc =~ s/$key=([\s\n]+)/$key=''\n/g;
$inc =~ s/$key=([\s\n]+)//g;
$inc =~ s/export $key//g;
}
}