]> Creatis software - clitk.git/commitdiff
correction in motion mask script
authordbcache <dbcache@clavaire.champignons>
Tue, 11 Oct 2011 12:18:12 +0000 (14:18 +0200)
committerdbcache <dbcache@clavaire.champignons>
Tue, 11 Oct 2011 12:18:12 +0000 (14:18 +0200)
scripts/create_midP_masks-2.0.sh

index 8a8babf8bd7f7b1c86bc907ffd48ddb5fecc43b9..f5738e0107c464a68fd0e97cba98a7e2719bd193 100755 (executable)
@@ -147,7 +147,9 @@ motion_mask()
   cd $dir
     
   # import variables specific to each patient
-  source ./variables
+  if test -e ./variables; then
+    source ./variables
+  fi
 
   #set other global variables
   mask_dir="MASK-${resample_spacing}mm-$resample_algo"