We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97a785 commit 237760dCopy full SHA for 237760d
src/main/index.js
@@ -252,10 +252,16 @@ let runner = {
252
runner.log('ERROR: Could not find the executable for step', step.displayName)
253
}
254
255
- // wrap args with " if they contain a space
+ // wrap args with " if they contain a special character
256
+ let specialChars = ' ~`#&$*()|[]{};\'<>?!'
257
+ specialChars = specialChars.split('')
258
+
259
for (let arg in step.args) {
- if (step.args[arg].includes(' ')) {
- step.args[arg] = '"' + step.args[arg] + '"'
260
+ for (let char of specialChars) {
261
+ if (step.args[arg].includes(char)) {
262
+ step.args[arg] = '"' + step.args[arg] + '"'
263
+ break
264
+ }
265
266
267
0 commit comments