Created
December 14, 2016 19:30
-
-
Save brunolm/573b9222798a48bae203fa50bc4d57f2 to your computer and use it in GitHub Desktop.
Update SQLEctron
This file contains hidden or 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
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