From: Jason Etheridge Date: Mon, 29 Jan 2018 20:51:29 +0000 (-0500) Subject: simplify arguments for mig-skip-iconv and mig-skip-clean X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=27ef2d024e990d181bdfba6f8ec13711ba1463ad simplify arguments for mig-skip-iconv and mig-skip-clean Signed-off-by: Jason Etheridge --- 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";