GRIB-262: Fixed test which broke on MacOS

This commit is contained in:
Shahram Najm 2013-06-12 18:56:41 +01:00
parent d7129bfb81
commit 0fda97e907
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#! /bin/sh
#!/bin/sh
# Copyright 2005-2013 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0

View File

@ -55,12 +55,14 @@ COUNT=264
rm -f $filter || true
echo "set NV=$COUNT;" >> $filter
echo "set pv={" >> $filter
for i in `seq 1 $COUNT`; do
i=1
while [ $i -le $COUNT ]; do
if [ $i = $COUNT ]; then
echo " $i" >> $filter
else
echo " $i ," >> $filter
fi
i=`expr $i + 1`
done
echo "};write;" >> $filter
# Apply this filter to a grib2 file from samples.