Fix ini options in migration script (#487)
This commit is contained in:
parent
d1a8c08e45
commit
4d88d44dc8
|
@ -126,10 +126,11 @@ else {
|
|||
my $conf;
|
||||
if ( -e $new ) {
|
||||
-w $new or quit( 4, "$new is not writeable" );
|
||||
$conf = Config::IniFiles->new( -file => $new )
|
||||
or quit( 4,
|
||||
"Unable to open $new:\n\t"
|
||||
. join( "\n\t", @Config::IniFiles::errors ) );
|
||||
$conf = Config::IniFiles->new( -file => $new, -allowcontinue => 1 )
|
||||
or quit(
|
||||
4,
|
||||
"Unable to open $new:\n\t" . join( "\n\t", @Config::IniFiles::errors )
|
||||
);
|
||||
}
|
||||
else {
|
||||
$conf = Config::IniFiles->new();
|
||||
|
|
Loading…
Reference in New Issue
Block a user