fix check update : add -L to curl

This commit is contained in:
Quentin Gibeaux 2021-07-15 16:42:19 +02:00 committed by root
parent 814f8dcf33
commit 1deaa51956

View File

@ -9,7 +9,7 @@
# 2 : WARNING new version available
# 3 : UNKNOWN github or local repo not probable
LAST_VERSION=$(curl --silent https://api.github.com/repos/tootsuite/mastodon/releases | jq -r '.[0].name')
LAST_VERSION=$(curl -L --silent https://api.github.com/repos/tootsuite/mastodon/releases | jq -r '.[0].name')
INSTALLED_VERSION=$(git -C /home/mastodon/live/ branch | grep ^* | sed -e 's/.*live-//')