From 65d31ba5650560a50e286c05ef8644b5c39f3ec2 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Wed, 31 Oct 2018 23:20:44 +0100 Subject: [PATCH] sort --- packaging/create_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/create_package.sh b/packaging/create_package.sh index 6313bd5..fa9680a 100755 --- a/packaging/create_package.sh +++ b/packaging/create_package.sh @@ -44,9 +44,9 @@ sed -e "s:%%GITVER%%:${gitver}:" -e "s:%%FLATSIZE%%:${flatsize}:" \ { printf '\nfiles {\n' - find "$rootdir" -type f -exec sha256 -r {} + | + find "$rootdir" -type f -exec sha256 -r {} + | sort | awk '{print " " $2 ": \"" $1 "\"," }' - find "$rootdir" -type l | + find "$rootdir" -type l | sort | awk "{print \" \"\$1 \": -,\"}" printf '}\n' } | sed -e "s:${rootdir}::" >> "$manifest"