mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
fix(windows): fix shjs tests for windows
This commit is contained in:
parent
7d6249a64d
commit
985ac20cd6
@ -3,7 +3,9 @@ var path = require('path');
|
||||
var assert = require('assert');
|
||||
|
||||
function runScript(name) {
|
||||
return shell.exec(path.resolve(__dirname, '../bin/shjs') +
|
||||
// prefix with 'node ' for Windows, don't prefix for OSX/Linux
|
||||
return shell.exec((process.platform === 'win32' ? 'node ' : '') +
|
||||
path.resolve(__dirname, '../bin/shjs') +
|
||||
' ' +
|
||||
path.resolve(__dirname, 'resources', 'shjs', name), { silent: true });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user