Skip to content

Commit

Permalink
Handle uppercase env override
Browse files Browse the repository at this point in the history
CSSH_* and cssh_*
  • Loading branch information
babs committed Apr 1, 2021
1 parent 0e2b3ef commit 18cc078
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/App/ClusterSSH/Config.pm
Expand Up @@ -339,6 +339,9 @@ sub load_configs {
# eg: terminal_size => cssh_terminal_size
foreach my $config_key ( sort( keys(%default_config) ) ) {
my $env_config_key = "cssh_".$config_key;
if ( exists $ENV{uc($env_config_key)}) {
$env_config_key = uc($env_config_key);
}
if ( exists $ENV{$config_key} ) {
$self->{$config_key} = $ENV{$config_key};
}
Expand Down

0 comments on commit 18cc078

Please sign in to comment.