From 2e029cf75ab568e1564dd1e7f6aba28527210477 Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Wed, 5 Oct 2016 14:05:39 +0200 Subject: [PATCH] =?UTF-8?q?Installe=20ou=20met=20=C3=A0=20jour=20sublime?= =?UTF-8?q?=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_sublime.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 update_sublime.sh diff --git a/update_sublime.sh b/update_sublime.sh new file mode 100644 index 0000000..c817195 --- /dev/null +++ b/update_sublime.sh @@ -0,0 +1,10 @@ +BUILD=$( + curl -Ls http://www.sublimetext.com/3 | + grep '

Build' | + head -n1 | + sed -E 's#

Build ([0-9]+)

#\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