We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa299b commit f40180aCopy full SHA for f40180a
ci/code-server.sh
@@ -1,6 +1,14 @@
1
#!/usr/bin/env sh
2
-# code-server.sh -- Run code-server with the bundled Node binary.
+# Runs code-server with the bundled Node binary.
3
4
-dir="$(dirname "$(readlink -f "$0" || realpath "$0")")"
+# More complicated than readlink -f or realpath to support macOS.
5
+# See https://github.com/cdr/code-server/issues/1537
6
+get_installation_dir() {
7
+ rel="$(readlink "$0")"
8
+ cd "$(dirname "$0")"
9
+ cd "$(dirname "$rel")"
10
+ pwd -P
11
+}
12
13
+dir=$(get_installation_dir)
14
exec "$dir/node" "$dir/out/node/entry.js" "$@"
0 commit comments