mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 03:55:18 +02:00
Use native node -p to get exec path (#7420)
This commit is contained in:
@@ -16,7 +16,7 @@ main() {
|
||||
# Package managers may shim their own "node" wrapper into the PATH, so run
|
||||
# node and ask it for its true path.
|
||||
local node_path
|
||||
node_path="$(node <<< 'console.info(process.execPath)')"
|
||||
node_path="$(node -p process.execPath)"
|
||||
|
||||
mkdir -p "$RELEASE_PATH/bin"
|
||||
mkdir -p "$RELEASE_PATH/lib"
|
||||
|
||||
Reference in New Issue
Block a user