mirror of
https://github.com/jlengrand/jreleaser.git
synced 2026-03-10 08:31:24 +00:00
[docker] force executbale bit on files inside bin directory. Fixes #358
This commit is contained in:
@@ -163,6 +163,13 @@ public final class FileUtils {
|
||||
}
|
||||
try (OutputStream o = Files.newOutputStream(file.toPath())) {
|
||||
IOUtils.copy(in, o);
|
||||
// TODO: make it a generic solution
|
||||
// zipEntry.unixMode returns 0 most times even if the
|
||||
// entry is executable
|
||||
// https://github.com/jreleaser/jreleaser/issues/358
|
||||
if ("bin".equalsIgnoreCase(file.getParentFile().getName())) {
|
||||
grantExecutableAccess(file.toPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user