]> Creatis software - clitk.git/commitdiff
print directory when no phase found
authorGauthier Bouilhol <bouilhol@creatis.insa-lyon.fr>
Wed, 28 Sep 2011 16:55:51 +0000 (18:55 +0200)
committerGauthier Bouilhol <bouilhol@creatis.insa-lyon.fr>
Wed, 28 Sep 2011 16:55:51 +0000 (18:55 +0200)
scripts/create_mhd_4D.sh

index 5b602446bd3b038081cf91834c663c4d0eaf6b74..b363f7e3034c3143755923a3904b0fbbf8a7596e 100755 (executable)
@@ -28,10 +28,10 @@ then
   exit 1
 fi
 
-nb_phase_file=`find $1 -maxdepth 1 -iname "*[0-9]*.mhd" -o -iname "*[0-9]*\]*.mhd" | wc -l`
+nb_phase_file=`find $1 -maxdepth 1 -iname "*[0-9]*.mhd" | wc -l`
 if [ $nb_phase_file = 0 ]
 then
-  echo "Error: no phase found"
+  echo "No phase found in $1"
   exit 1
 fi