Skip to content
Snippets Groups Projects
Commit 15226cd6 authored by Saad Jbabdi's avatar Saad Jbabdi
Browse files

added sanity check

parent 4a050dce
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,15 @@ fi
ecclog=$1
bvecs=$2
if [ -f ${bvecs}_old ];then
echo ""
echo "Error: Found that ${bvecs}_old already exists"
echo "This probably means that you have run this script before."
echo "If you want to force this program to run, please remove the file ${bvecs}_old"
echo ""
exit 1
done
/bin/cp ${bvecs} ${bvecs}_old
#/bin/rm -f ${bvecs}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment