guidance on size and mtime fields
This commit is contained in:
parent
abd56fb019
commit
1ccb6699a1
3 changed files with 15 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue