forked from lix-project/hydra
if HYDRA_CONFIG is not set, take default
This commit is contained in:
parent
586f131ebd
commit
560f41a7e5
|
@ -12,6 +12,7 @@ use Getopt::Long;
|
||||||
use Pod::Usage;
|
use Pod::Usage;
|
||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/../lib";
|
use lib "$FindBin::Bin/../lib";
|
||||||
|
use Hydra::Helper::Nix;
|
||||||
|
|
||||||
my $debug = 0;
|
my $debug = 0;
|
||||||
my $fork = 0;
|
my $fork = 0;
|
||||||
|
@ -27,6 +28,8 @@ my $follow_symlinks = 0;
|
||||||
|
|
||||||
my @argv = @ARGV;
|
my @argv = @ARGV;
|
||||||
|
|
||||||
|
$ENV{'HYDRA_CONFIG'} = getHydraConf if ! $ENV{'HYDRA_CONFIG'} ;
|
||||||
|
|
||||||
GetOptions(
|
GetOptions(
|
||||||
'debug|d' => \$debug,
|
'debug|d' => \$debug,
|
||||||
'fork' => \$fork,
|
'fork' => \$fork,
|
||||||
|
|
Loading…
Reference in a new issue