From 09f1d96b662d34c55de9903a8a890ad887bcd699 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 11 Sep 2016 11:51:37 +0200 Subject: avoid the usage of '-a' and '-o' bash options This keeps syntax-check happy. --- tests/suite/testrandom.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suite/testrandom.sh b/tests/suite/testrandom.sh index 79b90d32c0..75e4a40786 100755 --- a/tests/suite/testrandom.sh +++ b/tests/suite/testrandom.sh @@ -58,7 +58,7 @@ while [ ${counter} -lt 200 ]; do "${srcdir}/x509random.pl" > "${file}" ${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" >/dev/null ret=$? - if [ ${ret} != 0 -a ${ret} != 1 ]; then + if test ${ret} != 0 && test ${ret} != 1; then echo "Unknown exit code with ${file}" exit 1 fi @@ -73,7 +73,7 @@ while [ ${counter} -lt 200 ]; do "${srcdir}/asn1random.pl" > "${file}" ${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" >/dev/null 2>/dev/null ret=$? - if [ ${ret} != 0 -a ${ret} != 1 ]; then + if test ${ret} != 0 && test ${ret} != 1; then echo "Unknown exit code with ${file}" exit 1 fi -- cgit v1.2.1