]> git.pld-linux.org Git - packages/openssl.git/commitdiff
openssl-ssl-certificate.sh: fix test POSIX compatibility
authorMike Frysinger <vapier@gentoo.org>
Thu, 17 Mar 2016 17:41:49 +0000 (13:41 -0400)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 12 Sep 2020 08:49:19 +0000 (10:49 +0200)
The == operator is not in POSIX and will fail with some shells.

openssl-ssl-certificate.sh

index dd65c96977d7cdf682213843f9753084d45900f0..49fbd34cc8942df69320d5193f9539f9af90d4ce 100644 (file)
@@ -8,7 +8,7 @@ if [ "$1" != "--force" -a -f $CERT ]; then
   exit 0
 fi
 
-if [ "$1" == "--force" ]; then
+if [ "$1" = "--force" ]; then
   shift
 fi     
 
This page took 0.034561 seconds and 4 git commands to generate.