[packages/openssl] openssl-ssl-certificate.sh: fix test POSIX compatibility
arekm
arekm at pld-linux.org
Sat Sep 12 10:49:47 CEST 2020
commit 96dc38eefc05f9e588b22a721884eed41292456b
Author: Mike Frysinger <vapier at gentoo.org>
Date: Thu Mar 17 13:41:49 2016 -0400
openssl-ssl-certificate.sh: fix test POSIX compatibility
The == operator is not in POSIX and will fail with some shells.
openssl-ssl-certificate.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/openssl-ssl-certificate.sh b/openssl-ssl-certificate.sh
index dd65c96..49fbd34 100644
--- a/openssl-ssl-certificate.sh
+++ b/openssl-ssl-certificate.sh
@@ -8,7 +8,7 @@ if [ "$1" != "--force" -a -f $CERT ]; then
exit 0
fi
-if [ "$1" == "--force" ]; then
+if [ "$1" = "--force" ]; then
shift
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openssl.git/commitdiff/96dc38eefc05f9e588b22a721884eed41292456b
More information about the pld-cvs-commit
mailing list