Installe ou met à jour sublime text

This commit is contained in:
Shikiryu 2016-10-05 14:05:39 +02:00
parent 9944ce37de
commit 2e029cf75a

10
update_sublime.sh Normal file
View File

@ -0,0 +1,10 @@
BUILD=$(
curl -Ls http://www.sublimetext.com/3 |
grep '<h2>Build' |
head -n1 |
sed -E 's#<h2>Build ([0-9]+)</h2>#\1#g'
)
URL_FORMAT='https://download.sublimetext.com/sublime-text_build-%d_amd64.deb';
URL=$(printf "${URL_FORMAT}" "${BUILD}")
FILE=`mktemp`;
wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE