If JAVA_HOME isn't set then keytoolPath has an invalid path. This means checkJava() fails and doesn't tell the problem clearly to the user. Fixes #88
@@ -58,6 +58,10 @@ func init() {
}
func (m *mkcert) checkJava() bool {
+ if !hasKeytool {
+ return false
+ }
+
// exists returns true if the given x509.Certificate's fingerprint
// is in the keytool -list output
exists := func(c *x509.Certificate, h hash.Hash, keytoolOutput []byte) bool {