diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index de7c814ac..c94e49548 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -1095,8 +1095,9 @@ sub subvars_for_mypostscript { foreach $line ( @lines ) { if( $line =~ /^([^#]+)=[\s]*$/ ) { my $key=$1; - $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; } }