guidance on size and mtime fields

This commit is contained in:
Joey Hess 2020-07-20 19:56:47 -04:00
parent abd56fb019
commit 1ccb6699a1
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 15 additions and 4 deletions

View file

@ -33,8 +33,9 @@ while read line; do
GENKEY)
contentfile="$2"
hash=$(hashfile "$contentfile")
sz=$(wc -c "$contentfile" | cut -d ' ' -f 1)
if [ -n "$hash" ]; then
echo "GENKEY-SUCCESS" "XFOO--$hash"
echo "GENKEY-SUCCESS" "XFOO-s$sz--$hash"
else
echo "GENKEY-FAILURE" "md5sum failed"
fi