aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index f32252f..b088eca 100644
--- a/scripts/install
+++ b/scripts/install
@@ -102,10 +102,9 @@ CLONECOMMANDS
# Switch branch to tagged release
cd $final_path/live
-version=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | grep tag_name | cut -d\" -f4)
sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
-git checkout $version
+git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Be king rewind (/var/cache/yunohost/from_file/scripts)