From 34b0a927ab5c9232bcf864d524a9bf2558411700 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Fri, 10 Apr 2015 12:25:30 -0400 Subject: [PATCH] Polish shell script to avoid needless complexity. No need for here documents, just use "yes" or Reviewed-by: Richard Levitte --- test/testca | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/test/testca b/test/testca index d4d0159726..4bcb1fd576 100644 --- a/test/testca +++ b/test/testca @@ -1,5 +1,7 @@ #!/bin/sh +set -e + PERL="$1" if test "$OSTYPE" = msdosdjgpp; then @@ -9,35 +11,19 @@ else fi export PATH -SSLEAY_CONFIG="-config CAss.cnf" -export SSLEAY_CONFIG - -OPENSSL="`pwd`/../util/opensslwrap.sh" -export OPENSSL +export SSLEAY_CONFIG="-config CAss.cnf" +export OPENSSL="`pwd`/../util/opensslwrap.sh" /bin/rm -fr demoCA -# Could do '...CA.pl -newca <