diff --git a/ncdump/tst_netcdf4.sh b/ncdump/tst_netcdf4.sh index da975d54e..4c1260253 100755 --- a/ncdump/tst_netcdf4.sh +++ b/ncdump/tst_netcdf4.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # This shell script tests ncdump for netcdf-4 # Ed Hartnett, Dennis Heimbigner, Ward Fisher @@ -7,7 +7,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi set -e -ERR { +function ERR { RES=$? if [ $RES -ne 0 ]; then echo "Error found: $RES"