aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 8e33ce8..6ab3a13 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -50,10 +50,9 @@ PULLCOMMANDS
# 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 -l | sort -V | tail -n 1)
SWITCHCOMMANDS
# upgrade Node.js v4 to v6