forked from joejulian/gio-cmd
gogio: update keytool path for newer JDK
Signed-off-by: gedw99 <gedw99@gmail.com>
This commit is contained in:
@@ -769,7 +769,9 @@ func findKeytool() (string, error) {
|
||||
if javaHome == "" {
|
||||
return exec.LookPath("keytool")
|
||||
}
|
||||
keytool := filepath.Join(javaHome, "jre", "bin", "keytool"+exeSuffix)
|
||||
|
||||
// bin, instead of "jre". "jre" was for older JVM it seems.
|
||||
keytool := filepath.Join(javaHome, "bin", "keytool"+exeSuffix)
|
||||
if _, err := os.Stat(keytool); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user