From c7eb4ace251956c4ef69a3b4478c8611aab442fc Mon Sep 17 00:00:00 2001 From: nemsia Date: Sun, 21 May 2017 15:23:14 +0200 Subject: Upgrade with latest stable version (#31) * [enh] Upgrade on latest Upgrade with latest mastodon stable version --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index f070bbd..d217de6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,9 +50,11 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live +url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4) +version=$(echo $url | cut -d/ -f8) sudo su - $app <