mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Remove the legacy Linux bin command when installing stable
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
# developers would prefer a terminal editor as the default.
|
||||
update-alternatives --install /usr/bin/editor editor /usr/bin/@@NAME@@ 0
|
||||
|
||||
# Remove the legacy bin command if this is the stable build
|
||||
if [ "@@NAME@@" = "code"] then
|
||||
rm -rf /usr/local/bin/code
|
||||
fi
|
||||
|
||||
# Register repository as an apt source
|
||||
get_apt_config_value() {
|
||||
echo $(apt-config dump | grep "$1 " | sed -e "s/$1 \"//" -e "s/\";$//")
|
||||
|
||||
Reference in New Issue
Block a user