Commit 3324385c authored by Fidel Alfaro Almagro's avatar Fidel Alfaro Almagro
Browse files

Checking before deleting

parent 0454ea1e
......@@ -32,7 +32,9 @@ if [ -d $subjdir/ ] ; then
--forcedir \
--logdir=$subjdir.bedpostX/diff_parts \
$opts $nvox 1 ${subjdir} "$FSLDIR"
rm ${subjdir}.bedpostX/data_0
if [ -f ${subjdir}.bedpostX/data_0 ] ; then
rm ${subjdir}.bedpostX/data_0
fi
fi
else
echo "It was not possible to run BEDPOSTX on the subject."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment