fix on error
This commit is contained in:
parent
806295ccd9
commit
0113f77f27
1 changed files with 4 additions and 4 deletions
|
@ -187,11 +187,11 @@ if ( exists $opt{passenv} && exists $ENV{ $opt{passenv} } ) {
|
||||||
}
|
}
|
||||||
$opt{pass} = $opt{password} if ( $opt{pass} eq 0 and $opt{password} ne 0 );
|
$opt{pass} = $opt{password} if ( $opt{pass} eq 0 and $opt{password} ne 0 );
|
||||||
|
|
||||||
if ($opt{dumpdir} ne "") {
|
if ($opt{dumpdir} ne '') {
|
||||||
$opt{dumpdir} = abs_path( $opt{dumpdir} );
|
$opt{dumpdir} = abs_path( $opt{dumpdir} );
|
||||||
if ( !-d $opt{dumpdir} ) {
|
if ( ! -d $opt{dumpdir} ) {
|
||||||
infoprint "Directory $opt{dumpdir} does not exist";
|
infoprint("Directory $opt{dumpdir} does not exist");
|
||||||
infoprint "Creating directory $opt{dumpdir} ...";
|
infoprint("Creating directory $opt{dumpdir} ...");
|
||||||
mkdir $opt{dumpdir} or die "Cannot create directory $opt{dumpdir}: $!";
|
mkdir $opt{dumpdir} or die "Cannot create directory $opt{dumpdir}: $!";
|
||||||
} else {
|
} else {
|
||||||
info "Directory $opt{dumpdir} already exists";
|
info "Directory $opt{dumpdir} already exists";
|
||||||
|
|
Loading…
Reference in a new issue