Skip to content

Instantly share code, notes, and snippets.

@brunolm
Created December 14, 2016 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunolm/573b9222798a48bae203fa50bc4d57f2 to your computer and use it in GitHub Desktop.
Save brunolm/573b9222798a48bae203fa50bc4d57f2 to your computer and use it in GitHub Desktop.
Update SQLEctron
update-sqlectron() {
local x=$(curl -s https://github.com/sqlectron/sqlectron-gui/releases | grep '/sqlectron/sqlectron-gui/releases/tag/' | head -n 1 | awk -F "[><]" '{print $3}' | head -n 2 | sed 's,v,,g')
curl -L "https://github.com/sqlectron/sqlectron-gui/releases/download/v$x/Sqlectron-$x.deb" > /tmp/sqlectron.deb
sudo dpkg -i /tmp/sqlectron.deb && sudo apt install -f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment