From 747f887c84e7c205ad9a3ac8a74948cfd91a94b4 Mon Sep 17 00:00:00 2001 From: Josh GM Walker <56300765+Josh-Walker-GM@users.noreply.github.com> Date: Wed, 22 May 2024 18:22:28 +0100 Subject: [PATCH] fix(cli): Correct baremetal deploy command construction (#10675) **Problem** We introduced an error in the fix here: #10663 **Changes** 1. We ensure a space is present in the built command. --- .changesets/10675.md | 3 +++ packages/cli/src/commands/deploy/baremetal/SshExecutor.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changesets/10675.md diff --git a/.changesets/10675.md b/.changesets/10675.md new file mode 100644 index 000000000000..3217c549fbc9 --- /dev/null +++ b/.changesets/10675.md @@ -0,0 +1,3 @@ +- fix(cli): Correct baremetal deploy command construction (#10675) by @Josh-Walker-GM + +We correct a bug in the CLI introduced in the prior patch for baremetal deployments. diff --git a/packages/cli/src/commands/deploy/baremetal/SshExecutor.js b/packages/cli/src/commands/deploy/baremetal/SshExecutor.js index aa1090848cdb..8b6acf6d8b16 100644 --- a/packages/cli/src/commands/deploy/baremetal/SshExecutor.js +++ b/packages/cli/src/commands/deploy/baremetal/SshExecutor.js @@ -11,7 +11,7 @@ export class SshExecutor { */ async exec(path, command, args) { const argsString = args?.join(' ') || '' - const sshCommand = command + argsString + const sshCommand = command + (argsString ? ` ${argsString}` : '') if (this.verbose) { console.log(