diff --git a/ncdump/tst_netcdf4.sh b/ncdump/tst_netcdf4.sh index d228f2455..da975d54e 100755 --- a/ncdump/tst_netcdf4.sh +++ b/ncdump/tst_netcdf4.sh @@ -7,7 +7,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi set -e -function ERR { +ERR { RES=$? if [ $RES -ne 0 ]; then echo "Error found: $RES"