mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-21 02:11:11 +00:00
darwin server script: do not use python. Fixes microsoft/vscode-remote-release#6442
This commit is contained in:
@@ -7,7 +7,16 @@ case "$1" in
|
||||
--inspect*) INSPECT="$1"; shift;;
|
||||
esac
|
||||
|
||||
function realpath() { python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; }
|
||||
ROOT=$(dirname $(dirname $(realpath "$0")))
|
||||
function realdir() {
|
||||
SOURCE=$1
|
||||
while [ -h "$SOURCE" ]; do
|
||||
DIR=$( dirname "$SOURCE" )
|
||||
SOURCE=$(readlink "$SOURCE")
|
||||
[[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE
|
||||
done
|
||||
echo "$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
||||
}
|
||||
|
||||
ROOT=$(dirname $(realdir "$0"))
|
||||
|
||||
"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"
|
||||
|
||||
Reference in New Issue
Block a user