check for certutil with 'command -v'
authort3sserakt <t3ss@posteo.de>
Wed, 26 Jun 2019 15:25:50 +0000 (17:25 +0200)
committert3sserakt <t3ss@posteo.de>
Wed, 26 Jun 2019 15:25:50 +0000 (17:25 +0200)
src/gns/gnunet-gns-proxy-setup-ca.in

index b19b6c00152724cd514ed8f3421157a8ed823472..57d1a9f042fe13cba46998e61fdff096b61dbd0d 100644 (file)
@@ -181,11 +181,7 @@ generate_ca()
 
 importbrowsers()
 {
-    # Don't check with -H, -H defies any method to not
-    # print the output on screen! Let's hope that every
-    # certutil gets build with some kind of build flags
-    # which end up being printed here:
-    if test -z "`certutil --build-flags`" > /dev/null 2>&1
+    if test -z "`command -v certutil`" > /dev/null 2>&1
     then
         warningmsg "The 'certutil' command was not found."
         warningmsg "Not importing into browsers."