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:
parent
54a38c22db
commit
0f88993424
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue