From e816cab6f5f4eaa0e63f7f0ce751cde0f96b5a4b Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 24 Mar 2021 04:59:31 +0000 Subject: docs: update FossilOrigin-Name: 51658a4ad9ab409e8cc776d2640cb2eb6da420ea0791f071142afb0a588b67d2 --- src/cpt-lib.in | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index d9a5808..c6d3866 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -470,12 +470,11 @@ decompress() { } sh256() { - # This is a sha256sum function for outputting a standard - # hash digest. sha256 on BSD systems require an '-r' flag - # for outputting the same way with sha256sum, and still, - # it outputs a single space between the hash and the file - # whereas sha256sum outputs double spaces. It fallbacks to - # openssl, but that is rarely ever needed. + # This is a sha256sum function for outputting a standard hash digest. sha256 + # on BSD systems require an '-r' flag for outputting the same way with + # sha256sum, and still, it outputs a single space between the hash and the + # file whereas sha256sum outputs double spaces. It fallbacks to openssl, but + # that is rarely ever needed. { sha256sum "$1" 2>/dev/null || sha256 -r "$1" 2>/dev/null || openssl dgst -r -sha256 "$1" || -- cgit v1.2.3