forked from extern/shorewall_code
Cosmetic change
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6931 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7d89a456b2
commit
b2e6f5aea2
@ -877,11 +877,11 @@ sub read_a_line() {
|
|||||||
#
|
#
|
||||||
# Expand Shell Variables using %ENV
|
# Expand Shell Variables using %ENV
|
||||||
#
|
#
|
||||||
while ( $currentline =~ m( ^(.*?) #Part preceding '$'
|
while ( $currentline =~ m( ^(.*?) # Part preceding '$'
|
||||||
\$({)? #'$' and optional '{'
|
\$({)? # '$' and optional '{'
|
||||||
([a-zA-Z]\w*) #Shell Variable Name
|
([a-zA-Z]\w*) # Shell Variable Name
|
||||||
(?(2)}) #Match closing '}'
|
(?(2)}) # Match opening '{'
|
||||||
(.*)$)x #Rest of Line
|
(.*)$)x # Rest of Line
|
||||||
) {
|
) {
|
||||||
my $val = $ENV{$3};
|
my $val = $ENV{$3};
|
||||||
$val = '' unless defined $val;
|
$val = '' unless defined $val;
|
||||||
|
Loading…
Reference in New Issue
Block a user