Skip to content

Instantly share code, notes, and snippets.

@kognise
Last active October 31, 2019 17:10
Show Gist options
  • Save kognise/52d45fe863e3e8333454d5c2cc72a572 to your computer and use it in GitHub Desktop.
Save kognise/52d45fe863e3e8333454d5c2cc72a572 to your computer and use it in GitHub Desktop.
A small script to install Repl.it's UPM on Linux
upm_version=`curl -s "https://api.github.com/repos/replit/upm/releases/latest" | grep -Pom 1 '"tag_name": "v\K[^"]*'`
wget "https://github.com/replit/upm/releases/download/v${upm_version}/upm_${upm_version}_linux_amd64.deb"
sudo apt-get install ./upm_${upm_version}_linux_amd64.deb
rm ./upm_${upm_version}_linux_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment