]> Creatis software - clitk.git/blobdiff - vv/scripts/create_mhd_4D.sh
Delete widget first, the image data after
[clitk.git] / vv / scripts / create_mhd_4D.sh
index beea8c5eeffd6721beb74213477bc14e51fcc4e6..238e26aa9b4e68f649fc13af46003d098ced77c3 100755 (executable)
@@ -6,12 +6,12 @@
 #####################################################################
 if [ $# -lt 1 ]
 then
-    echo "Usage: create_mhd_4D.sh directory output_file_name"
+    echo "Usage: create_mhd_4D.sh directory output_file_name(without path)"
     exit 1
 fi
 
 cd $1
-nbph=`ls *0.mhd | wc -l`
+nbph=`find . -iname "*0.mhd" | wc -l`
 if [ $nbph = 0 ]
 then
     echo "Error: no phase found"