From b6486f7ddf812aa88ba5d2df961ff5d99029f2ad Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 18 Mar 2016 15:17:50 -0700 Subject: [PATCH] Remove the legacy Linux bin command when installing stable --- resources/linux/debian/postinst.template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/linux/debian/postinst.template b/resources/linux/debian/postinst.template index fddeac1390ea5..40538cd4ce849 100755 --- a/resources/linux/debian/postinst.template +++ b/resources/linux/debian/postinst.template @@ -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/\";$//")