Fail test if file does not exist

This commit is contained in:
Shahram Najm 2013-04-05 14:42:53 +01:00
parent b9193eaa8d
commit ca55220299
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ regular_latlon_surface.grib2
for file in $files
do
[ -f $file ]
echo $file >> log
${tools_dir}grib_ls -l 40,28 $file | grep index | awk '{print $4;}' >> log
done