Correct bug with unset default ports (Tony Mancill)

This commit is contained in:
duncan_ferguson 2009-04-03 19:48:58 +00:00
parent 16c466afc2
commit 3cd06e34d6
2 changed files with 7 additions and 2 deletions

View file

@ -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