Use gpg --with-colons --print-md

This commit is contained in:
root 2013-02-14 00:00:00 +00:00
parent 1a7e58db58
commit 1227529ff5

View file

@ -16,7 +16,8 @@ genkey()
pack_hash()
{
gpg --print-md SHA224 | tr -d ' ' | tr A-F a-f
local HASH=$(gpg --with-colons --print-md SHA224 | tr A-F a-f)
HASH=${HASH#:*:}; printf "%s" "${HASH%:}"
}
LOCALDIR="${GIT_DIR:-.git}/remote-gcrypt"