Skip to content

Commit

Permalink
Merge pull request #98 from PentiaLabs/bugfix/powershell-path
Browse files Browse the repository at this point in the history
Fix #94 - Powershell path issue
  • Loading branch information
TakeitEasyAlan committed Apr 10, 2017
2 parents b728d5b + 92a42b2 commit 86e7c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Powershell.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Powershell {
runAsync(pathToScriptFile, parameters) {
console.log('Powershell - running: ' + pathToScriptFile + ' ' + parameters);
var spawn = require('child_process').spawn;
var child = spawn('powershell.exe', [pathToScriptFile.replace(/ /g,'` '), parameters]);
var child = spawn('powershell.exe', [pathToScriptFile.replace(/(.+)/gi,'&(“$1”)'), parameters]);

child.stdout.setEncoding('utf8');
child.stderr.setEncoding('utf8');
Expand Down

0 comments on commit 86e7c3b

Please sign in to comment.