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 f145a9dac2
commit 26b9f7d33b

View file

@ -205,7 +205,7 @@ for my $line (@config_lines) {
$done = 1;
}
} 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;
$done = 1;
}