Browse Source

[master] avoid using bash-specific syntax (we actually didn't need it).

bash isn't available on all platforms by default.  we should be conservative.
JINMEI Tatuya 14 years ago
parent
commit
89dd63f0d2
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/lib/log/tests/run_time_init_test.sh.in

+ 2 - 4
src/lib/log/tests/run_time_init_test.sh.in

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # Copyright (C) 2011  Internet Systems Consortium, Inc. ("ISC")
 #
 # Permission to use, copy, modify, and/or distribute this software for any
@@ -13,14 +13,12 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id$
-
 tempfile=`echo /tmp/run_init_test_$$`
 failcount=0
 localmes=@abs_builddir@/localdef.mes
 tempfile=@abs_builddir@/run_time_init_test_tempfile_$$
 
-function passfail() {
+passfail() {
     if [ $1 -eq 0 ]; then
         echo "pass"
     else