We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8c56d3 commit dcbdcbaCopy full SHA for dcbdcba
1 file changed
src/cli/commands/init.ts
@@ -259,7 +259,7 @@ function generateConfig(opts: ConfigOptions): string {
259
const sshOpts: string[] = [];
260
if (opts.sshHost) sshOpts.push(`host: '${opts.sshHost}'`);
261
if (opts.sshUser) sshOpts.push(`user: '${opts.sshUser}'`);
262
- if (opts.sshPort && opts.sshPort !== 22) sshOpts.push(`port: ${opts.sshPort}`);
+ sshOpts.push(`port: ${opts.sshPort ?? 22}`);
263
264
if (sshOpts.length > 0) {
265
lines.push(` .ssh({ ${sshOpts.join(', ')} })`);
0 commit comments