mirror of
https://git.sr.ht/~eliasnaur/gio-cmd
synced 2026-07-01 07:35:37 +00:00
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 == "" {
|
if javaHome == "" {
|
||||||
return exec.LookPath("keytool")
|
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 {
|
if _, err := os.Stat(keytool); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user