Fix get option in config.pl script

This commit is contained in:
Hanno Becker 2017-07-28 16:36:51 +01:00 committed by Simon Butcher
parent bcfa6f42e3
commit c6f346b60c

View file

@ -205,7 +205,7 @@ for my $line (@config_lines) {
$done = 1; $done = 1;
} }
} elsif (!$done && $action eq "get") { } elsif (!$done && $action eq "get") {
if ($line =~ /^\s*#define\s*$name\s*(.*)\s*\b/) { if ($line =~ /^\s*#define\s*$name\s*([^\s]+)\s*\b/) {
$value = $1; $value = $1;
$done = 1; $done = 1;
} }