Skip to content
Snippets Groups Projects
Commit 3218580a authored by Duncan Mortimer's avatar Duncan Mortimer
Browse files

Exit 1 on failure

parent 2ddf6614
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ Usage() { ...@@ -8,7 +8,7 @@ Usage() {
echo "" echo ""
echo "Usage: eddy_correct <4dinput> <4doutput> <reference_no>" echo "Usage: eddy_correct <4dinput> <4doutput> <reference_no>"
echo "" echo ""
exit exit 1
} }
[ "$3" = "" ] && Usage [ "$3" = "" ] && Usage
...@@ -19,7 +19,7 @@ ref=${3} ...@@ -19,7 +19,7 @@ ref=${3}
if [ `${FSLDIR}/bin/imtest $input` -eq 0 ];then if [ `${FSLDIR}/bin/imtest $input` -eq 0 ];then
echo "Input does not exist or is not in a supported format" echo "Input does not exist or is not in a supported format"
exit exit 1
fi fi
avwroi $input $output $ref 1 avwroi $input $output $ref 1
......
...@@ -4,7 +4,7 @@ if [ $# -lt 1 ];then ...@@ -4,7 +4,7 @@ if [ $# -lt 1 ];then
echo "Usage: linkbedpost <sourcedir>" echo "Usage: linkbedpost <sourcedir>"
echo "" echo ""
echo "linkbedpost /usr/people/dtiuser/OCMR/CONTROLS/2mmdata/OCMR_20_001.bedpost" echo "linkbedpost /usr/people/dtiuser/OCMR/CONTROLS/2mmdata/OCMR_20_001.bedpost"
exit exit 1
fi fi
......
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