Created
March 14, 2017 08:25
-
-
Save alexisduque/be488c243593fd46a972881b7d318006 to your computer and use it in GitHub Desktop.
Update VSCode on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function code-up() { | |
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb | |
sudo dpkg -i /tmp/code_latest_amd64.deb | |
} | |
export -f code-up | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wouldn't you need to also uninstall the previous version?
apt-get remove visual-stuido-code
should probably be the first line in the function??