Skip to content

Commit

Permalink
use process.execPath
Browse files Browse the repository at this point in the history
  • Loading branch information
t3rmin4t0r authored and arturadib committed Feb 13, 2013
1 parent f19e0de commit 4233530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ function execSync(cmd, opts) {
if (fs.existsSync(codeFile)) _unlinkSync(codeFile);

fs.writeFileSync(scriptFile, script);
child.exec('node '+scriptFile, {
child.exec('"'+process.execPath+'" '+scriptFile, {
env: process.env,
cwd: exports.pwd()
});
Expand Down

0 comments on commit 4233530

Please sign in to comment.