]> git.sesse.net Git - remoteglot/commitdiff
Take config filename from an environment variable if it exists.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Jun 2015 23:29:28 +0000 (01:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Jun 2015 23:29:28 +0000 (01:29 +0200)
config.pm

index b169e07621df5d2415e2c7241be0a7c899bfd8e9..2bb1974fa578a1bd46d10fc7f93c5e34ecf6d7bd 100644 (file)
--- 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;
 };