mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 01:43:25 +00:00
Make use of find_binary if not set in config
If comms command isnt set then find the path to the binary
This commit is contained in:
parent
70bfa5b1c6
commit
99b908a64f
2 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,10 @@ sub new {
|
|||
$self->{comms} = 'ssh';
|
||||
}
|
||||
|
||||
if($self->{comms} && (! $self->{ $self->{comms} } || ! -e $self->{ $self->{comms} } ) ) {
|
||||
$self->{ $self->{comms} } = $self->find_binary( $self->{ comms } );
|
||||
}
|
||||
|
||||
$self->{title} = uc($Script);
|
||||
|
||||
return $self->validate_args(%args);
|
||||
|
|
|
@ -56,6 +56,8 @@ Readonly::Hash my %default_config => {
|
|||
terminal_decoration_height => 10,
|
||||
terminal_decoration_width => 8,
|
||||
|
||||
ssh => '/usr/bin/ssh',
|
||||
|
||||
rsh_args => "",
|
||||
telnet_args => "",
|
||||
ssh_args => "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue