mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
19 lines
520 B
Bash
Executable File
19 lines
520 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
VSCODE_DIR="/usr/share/code"
|
|
if [ -x "$VSCODE_DIR/Code" ]; then
|
|
ELECTRON="$VSCODE_DIR/Code"
|
|
elif [ -x "$VSCODE_DIR/Code - OSS" ]; then
|
|
ELECTRON="$VSCODE_DIR/Code - OSS"
|
|
else
|
|
echo "Could not locate Visual Studio Code executable."
|
|
exit 1
|
|
fi
|
|
|
|
CLI="$VSCODE_DIR/resources/app/out/cli.js"
|
|
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
|
|
exit $?
|