Skip to content

Commit edc1777

Browse files
committed
build: fail if any step of signing v2 firmwares fails
1 parent 76a3084 commit edc1777

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

release/scripts/v2sign.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
if [ -z "${1}" -o -z "${2}" ]
46
then
57
echo "Usage: ${0} <version/dir> <key_label>"
@@ -26,6 +28,9 @@ VERIFY_OPTS="-pubin -inkey ${PUBKEY} -pkeyopt digest:sha256 -pkeyopt rsa_padding
2628

2729
pushd "${WORKING_DIR}"
2830

31+
[ -f ${PUBKEY} ] || false # Public key file must exist
32+
[ -f ${KEY} ] || false # Private key file must exist
33+
2934
# Verify bootloaders are same
3035
sha1=$(sha256sum "${BLEDIR}/bootloader/bootloader.bin" | cut -d\ -f1)
3136
sha2=$(sha256sum "${NORADIODIR}/bootloader/bootloader.bin" | cut -d\ -f1)

0 commit comments

Comments
 (0)