From: Steinar H. Gunderson Date: Sun, 21 Jun 2015 23:29:28 +0000 (+0200) Subject: Take config filename from an environment variable if it exists. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=39843e66b3de9949b59a6e121180492cfe9f0477;hp=1678a9e9c9c0189dfdbbf68ab11cbcc178c5bf97 Take config filename from an environment variable if it exists. --- diff --git a/config.pm b/config.pm index b169e07..2bb1974 100644 --- a/config.pm +++ b/config.pm @@ -67,5 +67,6 @@ our @masters = ( our $tb_serial_key = undef; eval { - require 'config.local.pm'; + my $config_filename = $ENV{'REMOTEGLOT_CONFIG'} // 'config.local.pm'; + require $config_filename; };