Skip to content

Commit

Permalink
Merge pull request #112 from mariux64/fix-mxmirror
Browse files Browse the repository at this point in the history
mxmirror: Avoid perl warning
  • Loading branch information
donald authored Jan 9, 2020
2 parents d8f6b34 + 1806e36 commit a15ab91
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mxmirror/mxmirror
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,13 @@ sub read_mirrormap {
if(($from, $to, $args) = /^(\S+) (\S+)\s*(.*)$/) {
$source = convert_to_sourcepath($from);
unless ($source) {
print STDERR "**ERROR: CAN'T PARSE FROM: $_\n";
next;
}
$destination = convert_to_destinationpath($to, $source);
unless($source and $destination) {
print STDERR "**ERROR: CAN'T PARSE FROM/TO: $_\n";
unless($destination) {
print STDERR "**ERROR: CAN'T PARSE TO: $_\n";
next;
}
Expand Down

0 comments on commit a15ab91

Please sign in to comment.