From 1bab75db4886bc6b322ebbb9fbfadf18e5dda6cd Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Fri, 26 Apr 2019 20:57:34 -0700 Subject: [PATCH] Support custom config file locations --- lib/Hush/RPC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Hush/RPC.pm b/lib/Hush/RPC.pm index b2c22c1..a2949ea 100644 --- a/lib/Hush/RPC.pm +++ b/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 $!;