Description: Fix bashisms in the code.
--- a/src/oxford_asl/quasil
+++ b/src/oxford_asl/quasil
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # QuASIL: QUASAR Bayesian Arterial SpIn Labeling parameter estimation
 #
@@ -462,4 +462,4 @@
 mv $tempdir .
 fi
 
-echo "QUASIL done"
\ No newline at end of file
+echo "QUASIL done"
--- a/src/siena/viena_quant
+++ b/src/siena/viena_quant
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 #   viena_quant
 #
--- a/src/tbss/tbss_x
+++ b/src/tbss/tbss_x
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #   Copyright (C) 2012 University of Oxford
 #
 #   Part of FSL - FMRIB's Software Library
@@ -295,4 +295,4 @@
 rm initmask????.*
 
 cd ..
-echo "Now run randomise on the newly created files: all_F1_x_skeletonised etc."
\ No newline at end of file
+echo "Now run randomise on the newly created files: all_F1_x_skeletonised etc."
--- a/src/randomise/randomise_parallel
+++ b/src/randomise/randomise_parallel
@@ -129,7 +129,7 @@
 
 #stage2:
 cat <<combineScript > ${DIRNAME}/${BASENAME}.defragment
-#!/bin/sh
+#!/bin/bash
 echo "Merging stat images"
 for FIRSTSEED in ${ROOTNAME}_SEED1_*_p_*.nii.gz ${ROOTNAME}_SEED1_*_corrp_*.nii.gz ; do 
   ADDCOMMAND=""
--- a/src/fdt/bedpostx
+++ b/src/fdt/bedpostx
@@ -132,7 +132,7 @@
     if [ ! \$havedad -gt 0 ]; then
        exit 0
     fi
-    if [ "x$SGE_ROOT" == "x" ]; then
+    if [ "x$SGE_ROOT" = "x" ]; then
         havedad=\`ps -e -o pid | grep "$$\\b" | wc -l\`        
     fi
     sleep 180;
