mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
* fix: add linux library dependency check for remote server * chore: add faq link * chore: move to separate file for reuse * chore: add option to skip check * fix: check * fix: package path * fix: don't forget to exit main script
22 lines
466 B
Bash
22 lines
466 B
Bash
#!/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")")")"
|
|
|
|
# Check platform requirements
|
|
if [ "$(echo "$@" | grep -c -- "--skip-requirements-check")" -eq 0 ]; then
|
|
$ROOT/bin/helpers/check-requirements.sh
|
|
exit_code=$?
|
|
if [ $exit_code -ne 0 ]; then
|
|
exit $exit_code
|
|
fi
|
|
fi
|
|
|
|
"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"
|