X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2Fscripts%2Fcreate_mhd_4D.sh;h=238e26aa9b4e68f649fc13af46003d098ced77c3;hb=ff1d5b8af965e75ecdbc1b0cbff0dad6f3b3c511;hp=beea8c5eeffd6721beb74213477bc14e51fcc4e6;hpb=5e111e4d567195cf1379aa4b8a93ef04073652e5;p=clitk.git diff --git a/vv/scripts/create_mhd_4D.sh b/vv/scripts/create_mhd_4D.sh index beea8c5..238e26a 100755 --- a/vv/scripts/create_mhd_4D.sh +++ b/vv/scripts/create_mhd_4D.sh @@ -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"