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

Exit 1 on failure and change to use /bin/sh

parent b3045380
No related branches found
No related tags found
No related merge requests found
#!/usr/local/bin/bash #!/bin/sh
# preprocessing for DTI images acquired at FMRIB # preprocessing for DTI images acquired at FMRIB
Usage() { Usage() {
...@@ -10,7 +10,7 @@ echo "example: remove_vols data data_rv 4 19 35" ...@@ -10,7 +10,7 @@ echo "example: remove_vols data data_rv 4 19 35"
echo "" echo ""
echo "Note that the first volume is 0 and not 1" echo "Note that the first volume is 0 and not 1"
echo "" echo ""
exit exit 1
} }
[ "$1" = "" ] && Usage [ "$1" = "" ] && Usage
......
#!/usr/local/bin/bash #!/bin/sh
#averages multiple repeats and simultaneously remove dodgy volumes #averages multiple repeats and simultaneously remove dodgy volumes
#to be used after regscript - for DTI images acquired at FMRIB #to be used after regscript - for DTI images acquired at FMRIB
...@@ -29,7 +29,7 @@ echo "you should therefore type something like - " ...@@ -29,7 +29,7 @@ echo "you should therefore type something like - "
echo " replace_and_average_fmrib 3 4 5 73 82 166" echo " replace_and_average_fmrib 3 4 5 73 82 166"
echo "_________________________________________________________________________" echo "_________________________________________________________________________"
exit exit 1
} }
#=================================================================== #===================================================================
......
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