Browse Source

Installe ou met à jour sublime text

master
Shikiryu 5 years ago
parent
commit
2e029cf75a
  1. 10
      update_sublime.sh

10
update_sublime.sh

@ -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
Loading…
Cancel
Save