mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 15:43:30 +01:00
Avoid double colons in the CONFIG_PATH
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d643f57bc1
commit
e7318459f1
@ -5374,6 +5374,8 @@ sub ensure_config_path() {
|
|||||||
|
|
||||||
my $chop = ( $path =~ s/^:// );
|
my $chop = ( $path =~ s/^:// );
|
||||||
|
|
||||||
|
$path =~ s/:+/:/g;
|
||||||
|
|
||||||
@config_path = split /:/, $path;
|
@config_path = split /:/, $path;
|
||||||
|
|
||||||
shift @config_path if $chop && ( $export || $> != 0 );
|
shift @config_path if $chop && ( $export || $> != 0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user