mkrelease.sh: prevent double sign
This commit is contained in:
parent
4c966c6d4a
commit
82d771110c
|
@ -73,9 +73,11 @@ IMAGE="${BASEDIR}/$(jq -r '.name' ${JSON})-$(jq -r '.version' ${JSON})"
|
|||
echo "Need --dbkey KEY --dbcrt CRT options"
|
||||
exit 1
|
||||
fi
|
||||
if ! sbverify --cert "$DBCRT" bootx64.efi &>/dev/null ; then
|
||||
sbsign --key "$DBKEY" --cert "$DBCRT" --output bootx64-signed.efi bootx64.efi
|
||||
mv bootx64-signed.efi bootx64.efi
|
||||
fi
|
||||
fi
|
||||
[[ -f sha512sum.txt ]] || sha512sum * > sha512sum.txt
|
||||
[[ -f sha512sum.txt.sig ]] || gpg2 --detach-sign sha512sum.txt
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue