mirror of https://github.com/ecmwf/eccodes.git
Testing: Exclude symlinks
This commit is contained in:
parent
4ded321aab
commit
189f1dcd1b
|
@ -16,7 +16,9 @@ tempOut=temp.$label.txt
|
||||||
|
|
||||||
[ -z "$ECCODES_DEFINITION_PATH" ] || ECCODES_DEFINITION_PATH=`${tools_dir}/codes_info -d`
|
[ -z "$ECCODES_DEFINITION_PATH" ] || ECCODES_DEFINITION_PATH=`${tools_dir}/codes_info -d`
|
||||||
|
|
||||||
for file in `find ${ECCODES_DEFINITION_PATH}/ -name '*.def' -print | grep -v grib3/ | grep -v metar/ | grep -v taf/`
|
# Ignore symbolic links
|
||||||
|
# Ignore unsupported formats e.g., TAF, METAR
|
||||||
|
for file in `find ${ECCODES_DEFINITION_PATH}/ -name '*.def' -type f -print | grep -v grib3/ | grep -v metar/ | grep -v taf/`
|
||||||
do
|
do
|
||||||
${bin_dir}/codes_parser $file > $REDIRECT
|
${bin_dir}/codes_parser $file > $REDIRECT
|
||||||
done
|
done
|
||||||
|
@ -29,4 +31,5 @@ set -e
|
||||||
[ $status -ne 0 ]
|
[ $status -ne 0 ]
|
||||||
grep -q "Parser: syntax error" $tempOut
|
grep -q "Parser: syntax error" $tempOut
|
||||||
|
|
||||||
|
# Clean up
|
||||||
rm -f $tempOut
|
rm -f $tempOut
|
||||||
|
|
Loading…
Reference in New Issue