Skip to content

Commit 9a24b5b

Browse files
jeanp413mustard-mh
authored andcommitted
Use GP_VSCODE_NODE if provided
1 parent c50c244 commit 9a24b5b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

resources/server/bin/code-server-linux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ esac
99

1010
ROOT="$(dirname "$(dirname "$(readlink -f "$0")")")"
1111

12-
"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"
12+
if [ -z "$GP_VSCODE_NODE" ]; then
13+
GP_VSCODE_NODE="$ROOT/node"
14+
fi
15+
16+
"$GP_VSCODE_NODE" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"

resources/server/bin/remote-cli/code-linux.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ VERSION="@@VERSION@@"
99
COMMIT="@@COMMIT@@"
1010
EXEC_NAME="@@APPNAME@@"
1111
CLI_SCRIPT="$ROOT/out/server-cli.js"
12-
"$ROOT/node" "$CLI_SCRIPT" "$APP_NAME" "$VERSION" "$COMMIT" "$EXEC_NAME" "$@"
12+
13+
if [ -z "$GP_VSCODE_NODE" ]; then
14+
GP_VSCODE_NODE="$ROOT/node"
15+
fi
16+
17+
"$GP_VSCODE_NODE" "$CLI_SCRIPT" "$APP_NAME" "$VERSION" "$COMMIT" "$EXEC_NAME" "$@"

0 commit comments

Comments
 (0)