From 8c47ba255aa634ebb23482ccd8f5f98a0ecf7525 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 5 Mar 2020 10:26:14 -0600 Subject: [PATCH] Preserve current working directory Fixes #1388. --- ci/code-server.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/code-server.sh b/ci/code-server.sh index 73e01114..1cfa1e10 100755 --- a/ci/code-server.sh +++ b/ci/code-server.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh # code-server.sh -- Run code-server with the bundled Node binary. -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")" || exit 1 +dir="$(dirname "$(readlink -f "$0" || realpath "$0")")" -./node ./out/node/entry.js "$@" +"$dir/node" "$dir/out/node/entry.js" "$@"