From 279b24d1a40844372e1cdac12d98b2f2ba8b924b Mon Sep 17 00:00:00 2001 From: Gauthier Bouilhol Date: Wed, 28 Sep 2011 18:55:51 +0200 Subject: [PATCH] print directory when no phase found --- scripts/create_mhd_4D.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.1