diff options
Diffstat (limited to 'bootstrap.pl')
-rw-r--r-- | bootstrap.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.pl b/bootstrap.pl index b9dc20f..b210751 100644 --- a/bootstrap.pl +++ b/bootstrap.pl @@ -61,7 +61,7 @@ my $dir; if (defined($file)) { print "$modname installed at $file\n"; if (-f $file) { - $file =~ s/\.pm$//; + $file =~ s#/[^/]+\.pm$##; if (-d $file) { $dir = $file; } else { @@ -75,6 +75,7 @@ if (defined($file)) { } $file = "$dir/$incdir/AutoInstall.pm"; +$file = "$dir/AutoInstall.pm" unless (-f $file); -f $file or die "$file not found"; chdir $topdir or die "Can't change to $topdir: $!"; |