From 430d4ec6052cb4a4dbf17b4819b74eaab6a2bc11 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 16 Apr 2023 08:03:26 +0200 Subject: Using versioned sort in container list. Signed-off-by: Daniel Baumann --- libexec/container/list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/container/list') 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} -- cgit v1.2.3