mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-03 07:30:53 +02:00
Adopt new version scheme (#1553)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
5d01cebeab
commit
3a1f59b21c
114 changed files with 13 additions and 13 deletions
|
@ -76,7 +76,7 @@ variants=(
|
|||
fpm-alpine
|
||||
)
|
||||
|
||||
min_version='20.0'
|
||||
min_version='20'
|
||||
|
||||
# version_greater_or_equal A B returns whether A >= B
|
||||
function version_greater_or_equal() {
|
||||
|
@ -155,7 +155,7 @@ fullversions=( $( curl -fsSL 'https://download.nextcloud.com/server/releases/' |
|
|||
grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}' | \
|
||||
grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}' | \
|
||||
sort -urV ) )
|
||||
versions=( $( printf '%s\n' "${fullversions[@]}" | cut -d. -f1-2 | sort -urV ) )
|
||||
versions=( $( printf '%s\n' "${fullversions[@]}" | cut -d. -f1 | sort -urV ) )
|
||||
for version in "${versions[@]}"; do
|
||||
fullversion="$( printf '%s\n' "${fullversions[@]}" | grep -E "^$version" | head -1 )"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue