mirror of
https://github.com/coder/code-server.git
synced 2026-01-09 07:44:14 +08:00
Use native node -p to get exec path (#7420)
This commit is contained in:
parent
cdac5bff64
commit
8b3d9b9e0a
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user