summaryrefslogtreecommitdiffstats
path: root/libexec/container/list
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-04-16 06:03:26 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-06-10 09:11:49 +0000
commit552787af391f7ae07c40cad1829cdc7b984b60db (patch)
tree07eb80254b8015a52423f2c873962f908b6994b9 /libexec/container/list
parentAdding host variable for preseed files. (diff)
downloadcompute-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 'libexec/container/list')
-rwxr-xr-xlibexec/container/list2
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}