vscode/resources/server/bin/code-server-darwin.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
463 B
Bash
Raw Normal View History

2024-11-15 06:29:18 +00:00
#!/usr/bin/env bash
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
case "$1" in
--inspect*) INSPECT="$1"; shift;;
esac
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" "$@"