mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
fix: don't package detection script in legacy server (#208274)
* fix: don't package detection script in legacy server * chore: address review feedback * chore: rename download asset name
This commit is contained in:
@@ -9,24 +9,4 @@ esac
|
||||
|
||||
ROOT="$(dirname "$(dirname "$(readlink -f "$0")")")"
|
||||
|
||||
# Do not remove this check.
|
||||
# Provides a way to skip the server requirements check from
|
||||
# outside the install flow. A system process can create this
|
||||
# file before the server is downloaded and installed.
|
||||
skip_check=0
|
||||
if [ -f "/tmp/vscode-skip-server-requirements-check" ]; then
|
||||
echo "!!! WARNING: Skipping server pre-requisite check !!!"
|
||||
echo "!!! Server stability is not guaranteed. Proceed at your own risk. !!!"
|
||||
skip_check=1
|
||||
fi
|
||||
|
||||
# Check platform requirements
|
||||
if [ "$(echo "$@" | grep -c -- "--skip-requirements-check")" -eq 0 ] && [ $skip_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" "$@"
|
||||
|
||||
Reference in New Issue
Block a user