Commit d8866044 authored by Loic's avatar Loic
Browse files

HBSD: Fix 'find' for the revoked directory

Remove the "No such file or directory" warning generate by find.

Signed-off-by: Loic's avatarLoic <>
parent f4a61bee
......@@ -433,7 +433,7 @@ check_pubkey_validity() {
updatehash=$(${SHA256} -q ${tmpdir}/pubkey.pem)
for f in $(${FIND} ${mountpoint}/usr/share/keys/hbsd-update/revoked -type f); do
for f in $(${FIND} ${mountpoint}/usr/share/keys/hbsd-update/revoked -type f -print 2>/dev/null); do
filehash=$(${SHA256} -q ${f})
if [ "${filehash}" = "${updatehash}" ]; then
echo "[-] This update has been signed with a revoked key." >&2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment