X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig-bin%2Fmig-skip-clean;h=5b60cb17a94cd564ecb6686d8452c79bdd434609;hp=013c075945776a8f1c619445f5caeab96c248533;hb=27ef2d024e990d181bdfba6f8ec13711ba1463ad;hpb=6ade3d523bfdfe7add008ebe0a0e6d494edac88c 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";