Skip to content

Commit

Permalink
In hash-xdr.h use bash and fail early on fail or pipefail
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Nov 6, 2023
1 parent f4c4e2f commit 5dc4d9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hash-xdrs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# This file generates a C++ file which contains (filename, hash) pairs for XDR
# files included in the build. These are included in the stellar-core build to
Expand All @@ -8,6 +8,9 @@
# The goal is to detect the (unfortunately easy) condition of C++ and Rust code
# communicating with each other using different XDR definitions.

set -o errexit
set -o pipefail

if [ ! -d $1/xdr ]; then
echo "usage: $0 XDR_PROTOCOL_DIR"
exit 1
Expand Down

0 comments on commit 5dc4d9e

Please sign in to comment.