From 2de17384ff4c88a879394f3a42a7b522dbeedd82 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Wed, 22 Oct 2014 22:02:17 -0400 Subject: [PATCH] More portable digest() --- MasterPassword/C/build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MasterPassword/C/build b/MasterPassword/C/build index 0c83ed8a..14763d81 100755 --- a/MasterPassword/C/build +++ b/MasterPassword/C/build @@ -33,11 +33,7 @@ fi ### DEPENDENCIES digest() { - if hash xxd 2>/dev/null; then - openssl sha1 -binary < "$1" | xxd -p - else - openssl sha1 < "$1" | sed 's/.* //' - fi + openssl sha1 -binary < "$1" | od -t x1 -An -v | tr -d '[:space:]' } fetch() { if hash wget 2>/dev/null; then