Skip to content

Commit

Permalink
More update stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Nov 17, 2023
1 parent f7a38f5 commit 600cdf1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public void installVersion(int version, File realDestDir) throws IOException {
zis.close();
}
log("Moving into place");
destDir.renameTo(realDestDir);
boolean moveResult = destDir.renameTo(realDestDir);
if (!moveResult) {
throw new RuntimeException("Could not rename %s -> %s".formatted(destDir, realDestDir));
}
log("JDK " + version + " successfully downloaded and extracted");
}

Expand Down

0 comments on commit 600cdf1

Please sign in to comment.