diff --git a/Build.PL b/Build.PL index 2ab2078..7f6ea77 100644 --- a/Build.PL +++ b/Build.PL @@ -8,7 +8,7 @@ use My::Utility qw(check_config_script check_prebuilt_binaries check_prereqs_lib use Getopt::Long; my ($ans, $travis) = ''; -GetOptions ( "travis" => \$travis) ; +GetOptions("travis" => \$travis); print "Welcome to Alien::SDL2 module installation\n"; print "------------------------------------------\n"; @@ -192,7 +192,7 @@ else { } # select option '1' for travis - if ($travis == 1) { + if (defined $travis && $travis == 1) { $ans = 1; #set 'travis' var for inc/My/Builder.pm $build->notes( 'travis', '1' );