From: Rogan Hamby Date: Mon, 29 Jan 2018 20:54:13 +0000 (-0500) Subject: Merge branch 'master' of git.esilibrary.com:migration-tools X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=d19f73d7bf3ebb19a7fd6a54b941f5c21068d90d;hp=917e54c40ee7d85bf58ca6f5805d89d1647efbf4 Merge branch 'master' of git.esilibrary.com:migration-tools --- diff --git a/mig-bin/mig-skip-clean b/mig-bin/mig-skip-clean index 013c075..5b60cb1 100755 --- a/mig-bin/mig-skip-clean +++ b/mig-bin/mig-skip-clean @@ -43,6 +43,8 @@ my $file = abs_path($ARGV[0]); my $clean_file; if ($ARGV[1]) { $clean_file = abs_path($ARGV[1]); +} else { + $clean_file = $file; } if ($clean_file && ! $clean_file =~ /^$MIGBASEWORKDIR/) { die "File falls outside of MIGWORKDIR ($MIGWORKDIR): $clean_file\n"; diff --git a/mig-bin/mig-skip-iconv b/mig-bin/mig-skip-iconv index 9a36123..fec558d 100755 --- a/mig-bin/mig-skip-iconv +++ b/mig-bin/mig-skip-iconv @@ -40,6 +40,8 @@ my $file = abs_path($ARGV[0]); my $utf8_file; if ($ARGV[1]) { $utf8_file = abs_path($ARGV[1]); +} else { + $utf8_file = $file; } if ($utf8_file && ! $utf8_file =~ /^$MIGBASEWORKDIR/) { die "File falls outside of MIGWORKDIR ($MIGWORKDIR): $utf8_file\n";