Remove the legacy Linux bin command when installing stable

This commit is contained in:
Daniel Imms 2016-03-18 15:17:50 -07:00
parent 4763e93279
commit b6486f7ddf

View file

@ -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/\";$//")