mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-23 06:12:52 +00:00
use version sort for proper ordering (#180)
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ docker_repo=${docker_repo:-zokradonh}
|
|||||||
docker_tag_search () {
|
docker_tag_search () {
|
||||||
image="$1"
|
image="$1"
|
||||||
results=$(reg tags "$image" 2> /dev/null)
|
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
|
# function from https://stackoverflow.com/a/42790579/4754613
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ plugin_menu() {
|
|||||||
docker_tag_search () {
|
docker_tag_search () {
|
||||||
image="$1"
|
image="$1"
|
||||||
results=$(reg tags "$image" 2> /dev/null)
|
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)"
|
echo "Creating individual env files for containers (if they do not exist already)"
|
||||||
|
|||||||
Reference in New Issue
Block a user