Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
Env variables now take precendence over package variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Mar 16, 2012
1 parent 9bb66b4 commit 4dab278
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Alien/Base/ModuleBuild.pm
Expand Up @@ -32,8 +32,11 @@ my %default_repository_class = (
local => 'Alien::Base::ModuleBuild::Repository::Local',
);

our $Verbose ||= $ENV{ALIEN_VERBOSE};
our $Force ||= $ENV{ALIEN_FORCE};
our $Verbose;
$Verbose = $ENV{ALIEN_VERBOSE} if defined $ENV{ALIEN_VERBOSE};

our $Force;
$Force = $ENV{ALIEN_FORCE} if defined $ENV{ALIEN_FORCE};

################
# Parameters #
Expand Down

0 comments on commit 4dab278

Please sign in to comment.