From 1340cdfc48583514b3a256b53a5966961b08017a Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 17 Feb 2022 01:27:04 +0000 Subject: made edits to fit with xiutils --- xibuild/make_infos.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xibuild') diff --git a/xibuild/make_infos.sh b/xibuild/make_infos.sh index 729fccb..9c57910 100755 --- a/xibuild/make_infos.sh +++ b/xibuild/make_infos.sh @@ -25,7 +25,9 @@ get_info() { } sign () { - echo "SIGNATURE=" + printf "SIGNATURE=" + openssl dgst -sign $PRIV_KEY $1 | base64 | tr '\n' ' ' + printf "\n" openssl dgst -sign $PRIV_KEY $1 } @@ -35,7 +37,7 @@ list_line() { local name=$(basename -s ".xipkg" $pkg_file) local filecount=$(gzip -cd $pkg_file | tar -tvv | grep -c ^-) local checksum=$(md5sum $pkg_file | awk '{ print $1 }') - local size=$(du -s $pkg_file | awk '{print $1}') + local size=$(stat -c %s $pkg_file) echo $name.xipkg $checksum $size $filecount } -- cgit v1.2.1