add an enhancement to skip not well-formed deployment parameters.
This commit is contained in:
parent
3b1900c52d
commit
9383ceca98
@ -473,15 +473,17 @@ sub assign_to_osimage
|
||||
}
|
||||
}
|
||||
|
||||
my @newlines;
|
||||
foreach my $line (@ls) {
|
||||
if ($line =~ /^#ENV:.+=.+#$/) {
|
||||
chomp($line);
|
||||
$line =~ s/^#ENV://;
|
||||
$line =~ s/#$//;
|
||||
push @newlines, $line;
|
||||
}
|
||||
}
|
||||
|
||||
$deployparams = join ' ', @ls;
|
||||
$deployparams = join ' ', @newlines;
|
||||
|
||||
if (open(NEWLIST, ">>", "$installdir/osimages/$osimage/kits/KIT_COMPONENTS.postinstall")) {
|
||||
if ($deployparams) {
|
||||
|
Loading…
Reference in New Issue
Block a user