mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 01:43:25 +00:00
Correct bug with unset default ports (Tony Mancill)
This commit is contained in:
parent
16c466afc2
commit
3cd06e34d6
2 changed files with 7 additions and 2 deletions
|
@ -849,8 +849,12 @@ sub setup_helper_script() {
|
|||
\$port = \$port ? "\$port" : "$defaultport";
|
||||
\$command .= "\$svr \$port";
|
||||
} else {
|
||||
\$port = \$port ? "-p \$port" : "-p $defaultport";
|
||||
\$command .= "\$port \$svr";
|
||||
if ((\$port) || ("$defaultport" ne "")) {
|
||||
\$port = \$port ? "-p \$port" : "-p $defaultport";
|
||||
\$command .= "\$port \$svr";
|
||||
} else {
|
||||
\$command .= "\$svr";
|
||||
}
|
||||
}
|
||||
\$command .= " || sleep 5";
|
||||
# warn("Running:\$command\\n"); # for debug purposes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue