Skip to content

Commit

Permalink
Remove the legacy Linux bin command when installing stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Mar 18, 2016
1 parent 4763e93 commit b6486f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/linux/debian/postinst.template
Original file line number Diff line number Diff line change
Expand Up @@ -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/\";$//")
Expand Down

0 comments on commit b6486f7

Please sign in to comment.