Skip to content

Commit

Permalink
Remove overcomplicated abort when running on Windows
Browse files Browse the repository at this point in the history
Strawberry Perl, for example, can use CPAN. Most of Interchange probably
doesn't work on Windows anymore, but there's no reason to bail on it here.
  • Loading branch information
jonjensen committed Nov 2, 2017
1 parent ff51f57 commit d65c8c0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions dist/src/cpan_local_install
Expand Up @@ -11,7 +11,7 @@ require 5.008_005;

use vars qw/$opt_c $opt_d $opt_h $VERSION/;

$VERSION = '2008-11-12';
$VERSION = '2017-11-01';

my $prog = $0;
$prog =~ s:.*/::;
Expand Down Expand Up @@ -114,15 +114,6 @@ EOF
CPAN::get 'Bundle::Interchange';
}

# See if we have the CPAN module
eval {
die "Don't try this at home with Windows.\n" if $^O =~ /win32/i;
};

if($@) {
die "Can't do cpan_local_install: $@\n";
}

sub my_prompt {
my($pr) = shift || '? ';
my($def) = shift;
Expand Down

0 comments on commit d65c8c0

Please sign in to comment.