From 56d10d82bf9c77cce5d9ee0638a774471a2c0127 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 21 Jun 2023 11:00:52 -0800 Subject: [PATCH] Enforce Node binary permissions In some cases it may have extra write permissions. --- ci/build/build-standalone-release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/build/build-standalone-release.sh b/ci/build/build-standalone-release.sh index a297b9044..8ae02de3b 100755 --- a/ci/build/build-standalone-release.sh +++ b/ci/build/build-standalone-release.sh @@ -24,6 +24,8 @@ main() { rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server" rsync "$node_path" "$RELEASE_PATH/lib/node" + chmod 755 "$RELEASE_PATH/lib/node" + pushd "$RELEASE_PATH" npm install --unsafe-perm --omit=dev popd