Skip to content
Snippets Groups Projects
Verified Commit 865e2699 authored by David Beniamine's avatar David Beniamine
Browse files

Fix version detection

parent 7e39b96e
Branches
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ if [ $MAINTENANCE_LEVEL == "upgrade" ]
then
echo "Checking version from changelog page (upgrade)"
target_version=`curl -silent https://nextcloud.com/changelog/ \
| sed 's/>/>\n/g' | awk '/^<h3 id=/{print $2}' | head -n 1 \
| sed 's/>/>\n/g' | awk '/^\s*<h3 id=/{print $2}' | head -n 1 \
| sed -e 's/id="\(.*\)">/\1/' -e 's/-/./g'`
else
echo "Checking version from install page (security)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment