diff --git a/src/plugins/aws/ssm/index.ts b/src/plugins/aws/ssm/index.ts index fdb677a..aa69ae2 100644 --- a/src/plugins/aws/ssm/index.ts +++ b/src/plugins/aws/ssm/index.ts @@ -184,7 +184,7 @@ const commandParameter = (args: SshCommandArgs) => (argument) => // escape all double quotes (") in commands such as `p0 ssh > echo 'hello; "world"'` because we // need to encapsulate command arguments in double quotes as we pass them along to the remote shell - `"${argument.replace(/"/g, '\\"')}"` + `"${String(argument).replace(/"/g, '\\"')}"` ) .join(" ")}`.trim() : undefined;