]> Creatis software - clitk.git/blobdiff - scripts/create_mhd_4D.sh
New ComputeOptimalThreshold
[clitk.git] / 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