There was an error while loading. Please reload this page.
1 parent 7d6249a commit 985ac20Copy full SHA for 985ac20
1 file changed
test/shjs.js
@@ -3,7 +3,9 @@ var path = require('path');
3
var assert = require('assert');
4
5
function runScript(name) {
6
- return shell.exec(path.resolve(__dirname, '../bin/shjs') +
+ // prefix with 'node ' for Windows, don't prefix for OSX/Linux
7
+ return shell.exec((process.platform === 'win32' ? 'node ' : '') +
8
+ path.resolve(__dirname, '../bin/shjs') +
9
' ' +
10
path.resolve(__dirname, 'resources', 'shjs', name), { silent: true });
11
}
0 commit comments