code server scripts: use realpath

This commit is contained in:
Martin Aeschlimann
2022-02-01 17:24:14 +01:00
parent d971263085
commit 884273e35b
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
case "$1" in
--inspect*) INSPECT="$1"; shift;;
esac
ROOT=$(dirname $(dirname $(readlink -f $0)))
"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"