mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-02 04:23:11 +01:00
Better solution to multi-line exported symbols issue
This commit is contained in:
parent
5761bfd7d1
commit
cdb75bfd96
@ -2905,11 +2905,13 @@ sub get_params() {
|
|||||||
|
|
||||||
fatal_error "Processing of $fn failed" if $?;
|
fatal_error "Processing of $fn failed" if $?;
|
||||||
|
|
||||||
|
my $variable;
|
||||||
|
|
||||||
for ( @params ) {
|
for ( @params ) {
|
||||||
if ( /^(.*?)=(.*)$/ ) {
|
if ( /^export (.*?)='(.*)'$/ ) {
|
||||||
$params{$1} = $2 unless $1 eq '_';
|
$params{$variable = $1} = $2 unless $1 eq '_';
|
||||||
} else {
|
} elsif ( /^export (.*?)='/ ) {
|
||||||
warning_message "Unrecognized output from 'env' ($_) ignored";
|
warning_message "Exported symbol '$1' ignored";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,4 +32,4 @@ set -a
|
|||||||
|
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
env
|
export -p
|
||||||
|
Loading…
Reference in New Issue
Block a user