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:
parent
aa40fa7a75
commit
d365e45c02
2 changed files with 8 additions and 8 deletions
|
@ -11,10 +11,10 @@ function version_greater_or_equal() {
|
|||
[[ "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1" || "$1" == "$2" ]];
|
||||
}
|
||||
|
||||
latests=( $(curl -sSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
|
||||
grep -oE '>nextcloud-[[:digit:]]+(.[[:digit:]]+)+\.tar\.bz2<' | \
|
||||
latests=( $( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
|
||||
grep -oE 'nextcloud-[[:digit:]]+(.[[:digit:]]+)+' | \
|
||||
grep -oE '[[:digit:]]+(.[[:digit:]]+)+' | \
|
||||
sort -V ) )
|
||||
sort -uV ) )
|
||||
|
||||
travisEnv=
|
||||
for latest in "${latests[@]}"; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue