From 7c0b5130691382f99f87786d347be626e00b9bfa Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 3 Aug 2016 16:32:15 +0100 Subject: [PATCH] Remove redirect to dev/null in case of errors --- examples/F90/bufr_set_keys.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/F90/bufr_set_keys.sh b/examples/F90/bufr_set_keys.sh index 4c2e71dee..a5645bf3b 100755 --- a/examples/F90/bufr_set_keys.sh +++ b/examples/F90/bufr_set_keys.sh @@ -14,7 +14,7 @@ label="bufr_set_keys_test_f" #Prepare tmp file fBufrTmp=${label}.tmp.bufr -rm -f $fBufrTmp | true +rm -f $fBufrTmp #The bufr file to change f=${data_dir}/bufr/syno_multi.bufr @@ -22,11 +22,11 @@ f=${data_dir}/bufr/syno_multi.bufr REDIRECT=/dev/null #The input ($f) and output ($fBufrTmp) are hardcoded in the f90 example!!! -${examples_dir}/eccodes_f_bufr_set_keys >$REDIRECT 2> $REDIRECT +${examples_dir}/eccodes_f_bufr_set_keys >$REDIRECT -#Compare modified file to the original +#Compare modified file to the original set +e -${tools_dir}/bufr_compare $f $fBufrTmp >$REDIRECT 2> $REDIRECT +${tools_dir}/bufr_compare $f $fBufrTmp >$REDIRECT #Check if they are different if [ $? -eq 0 ]; then @@ -40,4 +40,4 @@ set -e [ `${tools_dir}/bufr_count $f` = `${tools_dir}/bufr_count ${fBufrTmp}` ] #Clean up -rm -f ${fBufrTmp} | true +rm -f ${fBufrTmp}