Oops, == should really be = when used with test ([ and ]).
authorRichard Levitte <levitte@openssl.org>
Thu, 27 Jan 2005 10:59:36 +0000 (10:59 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 27 Jan 2005 10:59:36 +0000 (10:59 +0000)
I guess I use bash too much...

Thanks to Peter Sylvester <Peter.Sylvester@edelweb.fr> for pointing it
out to me.

test/testsslproxy

index 40469f591e108bbd57f3481f87169a6e70f19a30..70cf12342d39a82490e6a5cbb445819c83abdb23 100644 (file)
@@ -5,6 +5,6 @@ echo 'Some of them may turn out being invalid, which is fine.'
 for auth in A B C BC; do
     for cond in A B C 'A|B&!C'; do
        sh ./testssl $1 $2 $3 "-proxy_auth $auth -proxy_cond $cond"
-       if [ $? == 3 ]; then exit 1; fi
+       if [ $? = 3 ]; then exit 1; fi
     done
 done