diff --git a/bootloader-docker-build.sh b/bootloader-docker-build.sh index 636a095aa0..d25e7e0234 100755 --- a/bootloader-docker-build.sh +++ b/bootloader-docker-build.sh @@ -1,4 +1,6 @@ #!/bin/bash +set -e + IMAGETAG=trezor-mcu-build FIRMWARETAG=${1:-master} diff --git a/firmware-docker-build.sh b/firmware-docker-build.sh index cd95ac5b7e..2b32c6c7b5 100755 --- a/firmware-docker-build.sh +++ b/firmware-docker-build.sh @@ -1,4 +1,6 @@ #!/bin/bash +set -e + IMAGETAG=trezor-mcu-build FIRMWARETAG=${1:-master} diff --git a/firmware-fingerprint.sh b/firmware-fingerprint.sh index 0157467ccf..3e48bcdb08 100755 --- a/firmware-fingerprint.sh +++ b/firmware-fingerprint.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e if [ -z "$1" ]; then echo "Please provide filename as argument" diff --git a/firmware/u2f/genkeys.sh b/firmware/u2f/genkeys.sh old mode 100644 new mode 100755 index 3bc7e5b10b..33371d5be9 --- a/firmware/u2f/genkeys.sh +++ b/firmware/u2f/genkeys.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cat > u2f_keys.h <) { + perl -e '$key = "\t"; while (<>) { if (/priv:/) { $priv = 1 } elsif (/pub:/) { $priv = 0 } elsif ($priv) { while ($_ =~ s/.*?([0-9a-f]{2})//) { - $key .= "0x$1,"; - if ($num++ % 8 == 7) { $key .= "\n\t"; } + $key .= "0x$1,"; + if ($num++ % 8 == 7) { $key .= "\n\t"; } else {$key .= " ";} } } @@ -32,7 +33,7 @@ cat >> u2f_keys.h <> u2f_keys.h