From 8e77d97eb6f003d0688729397a13d83a8862d420 Mon Sep 17 00:00:00 2001
From: Stephen Smith <steve@fmrib.ox.ac.uk>
Date: Fri, 7 Jan 2005 14:45:04 +0000
Subject: [PATCH] *** empty log message ***

---
 old_bedpost | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/old_bedpost b/old_bedpost
index 02f91a1..2bb281b 100755
--- a/old_bedpost
+++ b/old_bedpost
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-#   Copyright (C) 2004 University of Oxford
-#
 #   SHCOPYRIGHT
 
 Usage() {
@@ -43,7 +41,7 @@ Lock(){
 }
 
 ExitUnlock(){
-    if [ -e ${FSLLOCKDIR}/.bedpost.lock ];then
+    if [ -f ${FSLLOCKDIR}/.bedpost.lock ];then
 	rm ${FSLLOCKDIR}/.bedpost.lock
     fi
 
@@ -64,7 +62,7 @@ ExitUnlock(){
 LockTest(){
     if [ "x${FSLLOCKDIR}" = "x" ];then
 	echo 1;
-    elif [ ! -e ${FSLLOCKDIR}/.bedpost.lock ];then
+    elif [ ! -f ${FSLLOCKDIR}/.bedpost.lock ];then
 	echo 1;
     else
 	echo 0;
@@ -109,17 +107,18 @@ echo subjectdir is $subjdir
 
 #check that all required files exist
 
+
 if [ ! -d $subjdir ]; then
 	echo "subject directory $1 not found"
 	ExitUnlock
 fi
 
-if [ ! -e ${subjdir}/bvecs ]; then
+if [ ! -f ${subjdir}/bvecs ]; then
 	echo "${subjdir}/bvecs not found"
 	ExitUnlock
 fi
 
-if [ ! -e ${subjdir}/bvals ]; then
+if [ ! -f ${subjdir}/bvals ]; then
 	echo "${subjdir}/bvals not found"
 	ExitUnlock
 fi
-- 
GitLab