Skip to content

Commit

Permalink
#191: fixed untar on windows #199
Browse files Browse the repository at this point in the history
  • Loading branch information
salimbouch authored Feb 19, 2024
1 parent 5eb1f0f commit ea74969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private void unpack(Path file, Path targetDir, Function<InputStream, ArchiveInpu
mkdirs(entryPath.getParent());
Files.copy(ais, entryPath);
}
if (isTar) {
if (isTar && !this.context.getSystemInfo().isWindows()) {
Set<PosixFilePermission> permissions = PosixFilePermissions.fromString(permissionStr);
Files.setPosixFilePermissions(entryPath, permissions);
}
Expand Down

0 comments on commit ea74969

Please sign in to comment.