Skip to content

Commit

Permalink
Check if final binary is executable at the end of download/export
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Mar 12, 2018
1 parent b0211d8 commit 68844ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/github/bonigarcia/wdm/Downloader.java
Expand Up @@ -121,7 +121,9 @@ private Optional<File> downloadAndExtract(URL url, File targetFile,
if (!resultingBinary.exists()) {
moveFileToDirectory(extractedFile, targetFolder, true);
}
setFileExecutable(resultingBinary);
if (!config().isExecutable(resultingBinary)) {
setFileExecutable(resultingBinary);
}
deleteFolder(tempDir);

log.info("Binary driver after extraction {}", resultingBinary);
Expand Down

0 comments on commit 68844ea

Please sign in to comment.