mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 01:43:25 +00:00
Fix 'ctel', 'crsh' and 'ccon'
The code wasn't taking into account being called under another name correctly, so wasn't calling the correct comms method.
This commit is contained in:
parent
6eb3cdc2e4
commit
521b1fd37c
3 changed files with 14 additions and 5 deletions
|
@ -4,7 +4,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
use version;
|
||||
our $VERSION = version->new('0.01');
|
||||
our $VERSION = version->new('0.02');
|
||||
|
||||
use Carp;
|
||||
use Try::Tiny;
|
||||
|
@ -119,7 +119,10 @@ sub script {
|
|||
\$command .= "\$svr";
|
||||
}
|
||||
}
|
||||
\$command .= " \\\"$command\\\" ; $postcommand";
|
||||
if("$command") {
|
||||
\$command .= " \\\"$command\\\"";
|
||||
}
|
||||
\$command .= " ; $postcommand";
|
||||
warn("Running:\$command\\n"); # for debug purposes
|
||||
exec(\$command);
|
||||
HERE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue