Skip to content

Commit 7326c6f

Browse files
committed
protect complex statements
1 parent 4e48665 commit 7326c6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plugins/aws/ssm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ const buildSsmCommand = (args: Omit<SsmArgs, "requestId">) => {
9494
];
9595
if (args.command) {
9696
ssmCommand.push("--document-name", args.documentNames.command);
97-
ssmCommand.push("--parameters", `command=${args.command}`);
97+
ssmCommand.push("--parameters", `command='${args.command}'`);
9898
} else {
9999
ssmCommand.push("--document-name", args.documentNames.session);
100100
}
101-
102101
return ssmCommand;
103102
};
104103

0 commit comments

Comments
 (0)