0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-25 12:50:54 +02:00

Use the downloads index to get the latest version

This commit is contained in:
Tilo Spannagel 2017-06-06 15:24:08 +02:00
parent aa40fa7a75
commit d365e45c02
2 changed files with 8 additions and 8 deletions

View file

@ -40,11 +40,11 @@ join() {
echo "${out#$sep}"
}
latest=$(curl -fsSL 'https://nextcloud.com/changelog/' |tac|tac \
| grep -o "\(Version\|Release\)\s\+[[:digit:]]\+\(.[[:digit:]]\+\)\+" \
| awk '{ print $2 }' \
| sort -uV \
| tail -1)
latest=$( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
grep -oE 'nextcloud-[[:digit:]]+(.[[:digit:]]+)+' | \
grep -oE '[[:digit:]]+(.[[:digit:]]+)+' | \
sort -uV | \
tail -1 )
# Generate each of the tags.
versions=( */ )