From 68def073cfddac35a09c5985c61e43e20d04f13a Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Thu, 1 May 2025 12:06:52 +0100 Subject: [PATCH] build_library: Sort content listings for more consistent output Signed-off-by: James Le Cuirot --- build_library/reports_util.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_library/reports_util.sh b/build_library/reports_util.sh index 0873d9e960..b8548a9415 100644 --- a/build_library/reports_util.sh +++ b/build_library/reports_util.sh @@ -33,6 +33,7 @@ write_contents() { # %l - symlink target (empty if not a symlink) sudo TZ=UTC find -printf \ '%M %2n %-7u %-7g %7s %TY-%Tm-%Td %TH:%TM ./%P -> %l\n' \ + | sort --key=8 \ | sed -e 's/ -> $//' >"${output}" popd >/dev/null } @@ -57,7 +58,8 @@ write_contents_with_technical_details() { # %s - size in bytes # %P - file's path sudo find -printf \ - '%M %D %i %n %s ./%P\n' >"${output}" + '%M %D %i %n %s ./%P\n' \ + | sort --key=6 >"${output}" popd >/dev/null }