expandVars.pl: correctly handle macro values containing '='.

This commit is contained in:
Michael Davidsaver
2014-09-25 13:24:41 -04:00
parent b1918c1e31
commit 2f577c136c

View File

@@ -49,7 +49,7 @@ expandRelease(\%vars);
$vars{'ARCH'} = $opt_a if $opt_a;
while ($_ = shift @opt_D) {
my ($var, $val) = split /=/;
my ($var, $val) = split(/=/, $_, 2);
$vars{$var} = $val;
print "$var = $val\n" if $opt_d;
}