Installe ou met à jour sublime text
This commit is contained in:
parent
9944ce37de
commit
2e029cf75a
10
update_sublime.sh
Normal file
10
update_sublime.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user