Skip to content

Commit 5dc4d9e

Browse files
In hash-xdr.h use bash and fail early on fail or pipefail
1 parent f4c4e2f commit 5dc4d9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hash-xdrs.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# This file generates a C++ file which contains (filename, hash) pairs for XDR
44
# files included in the build. These are included in the stellar-core build to
@@ -8,6 +8,9 @@
88
# The goal is to detect the (unfortunately easy) condition of C++ and Rust code
99
# communicating with each other using different XDR definitions.
1010

11+
set -o errexit
12+
set -o pipefail
13+
1114
if [ ! -d $1/xdr ]; then
1215
echo "usage: $0 XDR_PROTOCOL_DIR"
1316
exit 1

0 commit comments

Comments
 (0)