Preserve current working directory

Fixes #1388.
This commit is contained in:
Asher 2020-03-05 10:26:14 -06:00
parent 4e6f6bc2cc
commit 8c47ba255a
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

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