diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-09-07 18:02:56 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-09-07 18:02:56 +0200 |
commit | 36db99c522b5edb2221e9fd23f53f63aacd43f9f (patch) | |
tree | 41a33f581afc1f4d64ac7d6ab3fb244abb12a2ba | |
parent | d9633bbdfc9a244078d251ea62625909d5bfd794 (diff) | |
download | gnutls-36db99c522b5edb2221e9fd23f53f63aacd43f9f.tar.gz |
Don't use ! to negate exit status.
Reported by "Tom G. Christensen" <tgc@jupiterrise.com> in
<http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3861>.
-rwxr-xr-x | tests/key-id/key-id | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/key-id/key-id b/tests/key-id/key-id index a7c7005bfb..c6be220d31 100755 --- a/tests/key-id/key-id +++ b/tests/key-id/key-id @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2007, 2008 Free Software Foundation +# Copyright (C) 2007, 2008, 2009 Free Software Foundation # # Author: Simon Josefsson # @@ -38,7 +38,10 @@ echo > tmpl $CERTTOOL $PARAMS --load-ca-certificate $srcdir/ca-weird-keyid.pem \ --outfile user-weird-keyid.pem 2> /dev/null -if ! $CERTTOOL -i < user-weird-keyid.pem | grep '7a2c7a6097460603cbfb28e8e219df18deeb4e0d'; then +if $CERTTOOL -i < user-weird-keyid.pem \ + | grep -q '7a2c7a6097460603cbfb28e8e219df18deeb4e0d'; then + : +else echo "Could not find CA SKI in user certificate." exit 1; fi |