[gnutls-devel] [PATCH 2/2] tests: remove bash usage
Alon Bar-Lev
alon.barlev at gmail.com
Wed Jun 17 10:59:56 CEST 2015
Signed-off-by: Alon Bar-Lev <alon.barlev at gmail.com>
---
tests/nist-pkits/gnutls_test_entry | 2 +-
tests/suite/certs/create-chain.sh | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/nist-pkits/gnutls_test_entry b/tests/nist-pkits/gnutls_test_entry
index 41fe007..f94cf4b 100755
--- a/tests/nist-pkits/gnutls_test_entry
+++ b/tests/nist-pkits/gnutls_test_entry
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
TITLE=$1
EECERT=$2
diff --git a/tests/suite/certs/create-chain.sh b/tests/suite/certs/create-chain.sh
index c1e1517..11add61 100755
--- a/tests/suite/certs/create-chain.sh
+++ b/tests/suite/certs/create-chain.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
srcdir=${srcdir:-.}
CERTTOOL=${CERTTOOL:-../../../src/certtool$EXEEXT}
@@ -12,7 +12,7 @@ if test "$NUM" = "";then
exit 1
fi
-let LAST=`expr $NUM - 1`
+LAST=`expr $NUM - 1`
rm -rf $OUTPUT
mkdir -p $OUTPUT
@@ -74,11 +74,11 @@ while test $counter -lt $NUM; do
fi
- let counter=`expr $counter+1`
+ counter=`expr $counter + 1`
prev_name=$name
done
-let counter=`expr $NUM - 1`
+counter=`expr $NUM - 1`
while test $counter -ge 0; do
if test $counter = $LAST;then
name="server-$counter"
@@ -88,6 +88,6 @@ while test $counter -ge 0; do
cat $OUTPUT/$name.crt >> $OUTPUT/chain
- let counter=`expr $counter-1`
+ counter=`expr $counter - 1`
done
--
2.3.6
More information about the Gnutls-devel
mailing list