Divers config Debian
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
346 B

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