Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / cross-spawn-async / cross-spawn-async.js
315 bytesRaw
1 | ; |
2 | |
3 | var fs = require('fs'); |
4 | var path = require('path'); |
5 | var spawn = require('cross-spawn-async'); |
6 | var bin = path.join(__dirname, 'fixture.js'); |
7 | var args = []; |
8 | |
9 | if (process.pkg) { |
10 | args.unshift(bin); |
11 | bin = process.execPath; |
12 | } else { |
13 | fs.chmodSync(bin, 511); |
14 | } |
15 | |
16 | spawn(bin, args, { stdio: 'inherit' }); |
17 |
Built with git-ssb-web