mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
use version sort for proper ordering (#180)
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
4a2167c4e5
commit
c870d5a739
@ -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
|
||||||
|
2
setup.sh
2
setup.sh
@ -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)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user