Skip to content

Instantly share code, notes, and snippets.

@alexisduque
Created March 14, 2017 08:25
Show Gist options
  • Save alexisduque/be488c243593fd46a972881b7d318006 to your computer and use it in GitHub Desktop.
Save alexisduque/be488c243593fd46a972881b7d318006 to your computer and use it in GitHub Desktop.
Update VSCode on Ubuntu
#!/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
@SahilAgarwal321
Copy link

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??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment