/
githubmirror
/
code-server
Обзор
Документация
Войти
/
githubmirror
/
code-server
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.121.0
ci/build/code-server.sh
28 строк
603 B
Joe Previte
fix: add node to path (#5598)
30 сен 2022, 02:02
Не верифицирован
30 сен 2022, 02:02
3ac2307
Код
Авторство
О чём код?
#!/bin/sh set -eu # This script is intended to be bundled into the standalone releases. # Runs code-server with the bundled node binary. _realpath() { # See https://github.com/coder/code-server/issues/1537 on why no realpath or readlink -f. script="$1" cd "$(dirname "$script")" while [ -L "$(basename "$script")" ]; do script="$(readlink "$(basename "$script")")" cd "$(dirname "$script")" done echo "$PWD/$(basename "$script")" } root() { script="$(_realpath "$0")" bin_dir="$(dirname "$script")" dirname "$bin_dir" } ROOT="$(root)" exec "$ROOT/lib/node" "$ROOT" "$@"