File: fix_bashisms

package info (click to toggle)
fsl 5.0.8-6
  • links: PTS, VCS
  • area: non-free
  • in suites: buster
  • size: 23,660 kB
  • sloc: cpp: 166,922; tcl: 25,439; sh: 14,612; ansic: 9,707; makefile: 1,336; python: 151; xml: 106; csh: 17
file content (61 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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;