From: Gauthier Bouilhol Date: Wed, 28 Sep 2011 16:55:51 +0000 (+0200) Subject: print directory when no phase found X-Git-Tag: v1.3.0~213^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=279b24d1a40844372e1cdac12d98b2f2ba8b924b;p=clitk.git print directory when no phase found --- diff --git a/scripts/create_mhd_4D.sh b/scripts/create_mhd_4D.sh index 5b60244..b363f7e 100755 --- a/scripts/create_mhd_4D.sh +++ b/scripts/create_mhd_4D.sh @@ -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