Use native node -p to get exec path (#7420)

This commit is contained in:
Frank Lemanschik 2025-07-15 22:08:37 +02:00 committed by GitHub
parent cdac5bff64
commit 8b3d9b9e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"