From e52a9dcb50bc05549d73f2b7c030c6fbf22604a5 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 21 May 2017 17:48:52 +0200 Subject: [PATCH] [fix] Install lastest release --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index ebe4569..1634c52 100644 --- a/scripts/install +++ b/scripts/install @@ -95,9 +95,11 @@ CLONECOMMANDS # 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 <