SHELL is not set by the shell, use BASH which is set by bash.

This commit is contained in:
Daniel O'Connor 2012-09-06 17:19:51 +09:30
parent 9f22073ab6
commit 7a06f55078
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ if [ $SYSTYPE = "SunOS" ]; then
SED=gsed SED=gsed
GREP=ggrep GREP=ggrep
fi fi
echo "BASH is $BASH"
if [ $SYSTYPE = "Linux" ]; then if [ $SYSTYPE = "Linux" ]; then
# Get nanosecond resolution # Get nanosecond resolution
TSFMT='+%Y-%m-%d %H:%M:%S.%N' TSFMT='+%Y-%m-%d %H:%M:%S.%N'

View File

@ -53,7 +53,7 @@ setup_dnahelper() {
export SID_JOE_F=1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF export SID_JOE_F=1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF
export SID_ECCLES=1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDE0 export SID_ECCLES=1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDE0
dnahelper="$TFWTMP/dnahelper" dnahelper="$TFWTMP/dnahelper"
echo "#\!$SHELL" >"$dnahelper" echo "#\!$BASH" >"$dnahelper"
cat >>"$dnahelper" <<'EOF' cat >>"$dnahelper" <<'EOF'
echo STARTED echo STARTED
while read line while read line
@ -231,8 +231,8 @@ setup_ExecArg1() {
setup_servald setup_servald
assert_no_servald_processes assert_no_servald_processes
dnahelper="$TFWTMP/dnahelper" dnahelper="$TFWTMP/dnahelper"
cat >"$dnahelper" <<'EOF' echo "#\!$BASH" >"$dnahelper"
#!/bin/sh cat >>"$dnahelper" <<'EOF'
echo STARTED echo STARTED
while read line while read line
do do