Browse Source

declare hostChecking at top of function

pull/250/head
Kyle Lucy 5 years ago
parent
commit
a36bbfba2c
  1. 5
      src/server/command/ssh.ts

5
src/server/command/ssh.ts

@ -6,11 +6,12 @@ export default function sshOptions(
{ pass, path, command, host, port, auth, knownhosts }: { [s: string]: string },
key?: string
): string[] {
var hostChecking;
const cmd = parseCommand(command, path);
if (knownhosts !== '/dev/null') {
var hostChecking = 'yes';
hostChecking = 'yes';
} else {
var hostChecking = 'no';
hostChecking = 'no';
}
const sshRemoteOptsBase = [
'ssh',

Loading…
Cancel
Save