mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-28 21:25:25 +00:00
Fix spawns against Node
For example some code tries to run -e against the binary but that fails since we inject our entry file every time the binary is invoked. Fixes #932.
This commit is contained in:
parent
a3ee7c96a0
commit
c9ce9ebb2e
6
main.js
6
main.js
@ -1 +1,7 @@
|
||||
// Once our entry file is loaded we no longer need nbin to bypass normal Node
|
||||
// execution. We can still shim the fs into the binary even when bypassing. This
|
||||
// will ensure for example that a spawn like `${process.argv[0]} -e` will work
|
||||
// while still allowing us to access files within the binary.
|
||||
process.env.NBIN_BYPASS = true;
|
||||
|
||||
require("../../bootstrap-amd").load("vs/server/src/cli");
|
||||
|
Loading…
Reference in New Issue
Block a user