fixed pathing issue with finding xml files
authorRogan Hamby <rhamby@esilibrary.com>
Mon, 26 Feb 2018 20:45:12 +0000 (15:45 -0500)
committerRogan Hamby <rhamby@esilibrary.com>
Mon, 26 Feb 2018 20:45:12 +0000 (15:45 -0500)
mig-bin/mig-reporter

index d4c0217..d97d4f0 100755 (executable)
@@ -100,7 +100,8 @@ if (!defined $report_title) { abort('--report_title must be supplied'); }
 
 my $mig_path = abs_path($0);
 $mig_path =~ s|[^/]+$||;
-if (!defined $reports_xml) { $reports_xml = $mig_path . '../mig-xml/evergreen_staged_report.xml'; }
+if (!defined $reports_xml) { $reports_xml = $mig_path . '../mig-xml/evergreen_staged_report.xml'; } 
+    else { $reports_xml = $mig_path . '/../mig-xml/' . $reports_xml; }
 print "$reports_xml \n";
 my $dom = $parser->parse_file($reports_xml);