mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Improve shorewallrc variable expansion
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7390789b5e
commit
173d29969d
@ -2281,13 +2281,12 @@ sub process_shorewallrc() {
|
||||
if ( $currentline =~ /^([a-zA-Z]\w*)=(.*)$/ ) {
|
||||
my ($var, $val) = ($1, $2);
|
||||
$val = $1 if $val =~ /^\"([^\"]*)\"$/;
|
||||
expand_variables( $val, 1 ) if supplied $val;
|
||||
expand_variables( $val, 1 ) if supplied $val && $var ne 'PRODUCT';
|
||||
$shorewallrc{$var} = $val;
|
||||
} else {
|
||||
fatal_error "Unrecognized shorewallrc entry";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user