1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

Made sure kobaltw in ~/.kobalt/wrapper/dist/ is executable on non-Windows platforms.

This commit is contained in:
Erik C. Thauvin 2017-04-10 23:23:18 -07:00
parent 54a38c22db
commit 0f88993424

View file

@ -345,6 +345,11 @@ public class Main {
try {
Files.createDirectories(entryPath.getParent());
Files.copy(zipFile.getInputStream(entry), entryPath, StandardCopyOption.REPLACE_EXISTING);
if (!isWindows() && entry.getName().endsWith(KOBALTW)) {
if (!entryPath.toFile().setExecutable(true)) {
log(1, "Couldn't make distribution " + KOBALTW + " executable");
}
}
} catch (FileSystemException ex) {
log(2, "Couldn't copy to " + entryPath);
}