Skip to content

mxmirror: Avoid perl warning #112

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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