From a869e5a67623eadaf02f8fdf467a33dab0bbb0b9 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 13 Feb 2014 11:21:37 +0000 Subject: [PATCH] BUG: fixed tutorial Allrun trying to test non-existent logs --- tutorials/Allrun | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tutorials/Allrun b/tutorials/Allrun index d4bdfb3dff..ddae828f36 100755 --- a/tutorials/Allrun +++ b/tutorials/Allrun @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -80,7 +80,10 @@ do ( [ -d $appDir ] && cd $appDir || exit - for log in `find . -name "log.*" | xargs ls -rt` + logs=`find . -name "log.*"` + [ -n "$logs" ] || exit + + for log in `echo $logs | xargs ls -rt` do logReport $log >> ../testLoopReport done