if HYDRA_CONFIG is not set, take default

This commit is contained in:
Rob Vermaas 2011-03-07 15:49:48 +00:00
parent 586f131ebd
commit 560f41a7e5

View file

@ -12,6 +12,7 @@ use Getopt::Long;
use Pod::Usage;
use FindBin;
use lib "$FindBin::Bin/../lib";
use Hydra::Helper::Nix;
my $debug = 0;
my $fork = 0;
@ -27,6 +28,8 @@ my $follow_symlinks = 0;
my @argv = @ARGV;
$ENV{'HYDRA_CONFIG'} = getHydraConf if ! $ENV{'HYDRA_CONFIG'} ;
GetOptions(
'debug|d' => \$debug,
'fork' => \$fork,