change regex for $ret evaluation

This commit is contained in:
2021-04-23 17:20:17 +02:00
parent 4c9946a575
commit db6c9525b2
2 changed files with 3 additions and 3 deletions

View File

@@ -67,12 +67,12 @@ sub CommandBackup {
$ret = addConfDBFiles( $configfile, $statefile );
return ::Log(1, qq(Backup ERROR - addConfDBFiles: $ret))
if ( defined($ret)
&& $ret =~ m{\ACan\'t open.*}xms);
&& $ret =~ m{\ACan\'t\sopen.*}xms);
$ret = readModpath( $modpath, $backupdir );
return ::Log(1, qq(Backup ERROR - readModpath: $ret))
if ( defined($ret)
&& $ret =~ m{\ACan\'t open.*}xms);
&& $ret =~ m{\ACan\'t\sopen.*}xms);
## add all logfile path to pathname array
$ret = addLogPathToPathnameArray();