mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
darwin server script: do not use python. Fixes microsoft/vscode-remote-release#6442
This commit is contained in:
parent
bea4702933
commit
5aee6939e2
|
@ -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" "$@"
|
||||
|
|
Loading…
Reference in a new issue