]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
cert-enroll: Fixed typo
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 7 Sep 2024 15:13:00 +0000 (17:13 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 7 Sep 2024 15:17:07 +0000 (17:17 +0200)
This typo prevented the cert-enroll script from successfully
signalling a detected change of the sub CA certificate.

src/cert-enroll/cert-enroll.in

index 6949516db6646ca622ec40888d73b496a67293ea..84251a9477a3ed51a541871f441b698321dcb3b8 100644 (file)
@@ -160,7 +160,7 @@ function check_ca_certs()
   fi
 
   SUBCA_CHANGED=0
-  cmp -s $SUBCA new/$SUBCA || SUBCA_CHANGE=$?
+  cmp -s $SUBCA new/$SUBCA || SUBCA_CHANGED=$?
   if [ $SUBCA_CHANGED -ne 0 ]
   then
     echo "Warning: '$SUBCA' has changed"