diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-04-16 06:03:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-06-10 09:11:49 +0000 |
commit | 552787af391f7ae07c40cad1829cdc7b984b60db (patch) | |
tree | 07eb80254b8015a52423f2c873962f908b6994b9 /lib | |
parent | Adding host variable for preseed files. (diff) | |
download | compute-tools-552787af391f7ae07c40cad1829cdc7b984b60db.tar.xz compute-tools-552787af391f7ae07c40cad1829cdc7b984b60db.zip |
Using versioned sort in container list.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | libexec/container/list | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/container/list b/libexec/container/list index a56c1f8..e211b7c 100755 --- a/libexec/container/list +++ b/libexec/container/list @@ -327,7 +327,7 @@ esac if ls "${MACHINES}"/* > /dev/null 2>&1 then - CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 \( -type d -or -type l \) -and -not -name 'lost+found' -printf '%P\n' | sort)" + CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 \( -type d -or -type l \) -and -not -name 'lost+found' -printf '%P\n' | sort -V)" fi for CONTAINER in ${CONTAINERS} |