Skip to content

Commit 8b6f7f4

Browse files
committed
Fixed calling ruby scripts with spaces in path
1 parent 48836d3 commit 8b6f7f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/puppet/ruby.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class Ruby
4646
const ruby = Ruby.Path();
4747

4848
const argsTotal = [
49-
path.join(ruby.path, script)
49+
'"' + path.join(ruby.path, script) + '"'
5050
];
5151

5252
for (let arg of args)
@@ -69,8 +69,8 @@ export class Ruby
6969
const ruby = Ruby.Path();
7070

7171
const argsTotal = [
72-
ruby.rubyPath,
73-
path.join(ruby.path, script)
72+
'"' + ruby.rubyPath + '"',
73+
'"' + path.join(ruby.path, script) + '"'
7474
];
7575

7676
for (let arg of args)

0 commit comments

Comments
 (0)