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> | 2024-08-29 05:49:57 +0000 |
commit | 430d4ec6052cb4a4dbf17b4819b74eaab6a2bc11 (patch) | |
tree | 7e26d57b341756060921e9712747564d238902e5 /libexec | |
parent | Adding host variable for preseed files. (diff) | |
download | compute-tools-430d4ec6052cb4a4dbf17b4819b74eaab6a2bc11.tar.xz compute-tools-430d4ec6052cb4a4dbf17b4819b74eaab6a2bc11.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} |