From 4868d73d29ca83b821fa7d696279a54df6d5efb5 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 13 Jun 2017 17:33:06 +0100 Subject: [PATCH] Trap errors in scripts --- src/make_hash_keys.ksh | 2 +- tests/list_all_keys.ksh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/make_hash_keys.ksh b/src/make_hash_keys.ksh index c8e6d390b..151125584 100755 --- a/src/make_hash_keys.ksh +++ b/src/make_hash_keys.ksh @@ -1,5 +1,5 @@ #!/usr/bin/ksh -set -x +set -xe cd ../tests diff --git a/tests/list_all_keys.ksh b/tests/list_all_keys.ksh index 3386675ef..a9389ac88 100755 --- a/tests/list_all_keys.ksh +++ b/tests/list_all_keys.ksh @@ -8,6 +8,7 @@ # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. . ./include.sh +set -e [ -z "$ECCODES_DEFINITION_PATH" ] | ECCODES_DEFINITION_PATH=`${tools_dir}/codes_info -d`