diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 54f22b11..259192ab 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -287,7 +287,7 @@ export function openSSH(url) { type: UI_OPEN_SSH_URL, effect() { let parsedUrl = parseUrl(url, true); - let command = parsedUrl.protocol + ' ' + (parsedUrl.user || '') + '@' + parsedUrl.resource; + let command = parsedUrl.protocol + ' ' + (parsedUrl.user ? `${parsedUrl.user}@` : '') + parsedUrl.resource; if (parsedUrl.port) command += ' -p ' + parsedUrl.port;