From a67cd2a91b8ffd0c69e127e13bdaf7569e9c8cca Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Sun, 14 Jan 2024 17:26:51 +0100 Subject: [PATCH] contrib: fix `check` scripts Add `set -e` to scripts to exit from a script on error --- contrib/check-bindings.sh | 3 +++ contrib/check-crates.sh | 3 +++ contrib/check-docs.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/contrib/check-bindings.sh b/contrib/check-bindings.sh index fa85d82ff..edbb7b00c 100644 --- a/contrib/check-bindings.sh +++ b/contrib/check-bindings.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Needed to exit from script on error +set -e + buildargs=( "-p nostr-ffi" "-p nostr-sdk-ffi" diff --git a/contrib/check-crates.sh b/contrib/check-crates.sh index 4ad7cf2e9..85256c655 100644 --- a/contrib/check-crates.sh +++ b/contrib/check-crates.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Needed to exit from script on error +set -e + # MSRV msrv="1.64.0" diff --git a/contrib/check-docs.sh b/contrib/check-docs.sh index dff351c03..c3ada934a 100644 --- a/contrib/check-docs.sh +++ b/contrib/check-docs.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Needed to exit from script on error +set -e + buildargs=( "-p nostr --all-features" "-p nostr-database --all-features"