Use gpg --with-colons --print-md
This commit is contained in:
parent
1a7e58db58
commit
1227529ff5
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue