Trap errors in scripts

This commit is contained in:
Shahram Najm 2017-06-13 17:33:06 +01:00
parent 94a7d6b73a
commit 4868d73d29
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/ksh
set -x
set -xe
cd ../tests

View File

@ -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`