1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 07:56:12 +00:00

use version sort for proper ordering (#180)

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2019-06-13 08:30:06 +02:00 committed by GitHub
parent 4a2167c4e5
commit c870d5a739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ docker_repo=${docker_repo:-zokradonh}
docker_tag_search () {
image="$1"
results=$(reg tags "$image" 2> /dev/null)
echo "$results" | xargs -n1 | sort -ru
echo "$results" | xargs -n1 | sort --version-sort -ru
}
# function from https://stackoverflow.com/a/42790579/4754613

View File

@ -32,7 +32,7 @@ plugin_menu() {
docker_tag_search () {
image="$1"
results=$(reg tags "$image" 2> /dev/null)
echo "$results" | xargs -n1 | sort -ru | xargs
echo "$results" | xargs -n1 | sort --version-sort -ru | xargs
}
echo "Creating individual env files for containers (if they do not exist already)"