Browse Source

Support custom config file locations

master
Jonathan "Duke" Leto 5 years ago
parent
commit
1bab75db48
  1. 2
      lib/Hush/RPC.pm

2
lib/Hush/RPC.pm

@ -14,7 +14,7 @@ sub new {
my $HOME = $ENV{HOME};
# TODO: support other OS's and custom config file path
# TODO: update to KMD AC location
my $config = catfile($HOME, qw/.hush hush.conf/);
my $config = $ENV{HUSH_CONFIG} || catfile($HOME, qw/.hush hush.conf/);
my ($user,$password) = ('','');
if (-e $config) {
open(my $fh, '<', $config) or die $!;

Loading…
Cancel
Save