Skip to content

Commit

Permalink
devonfw#139: added check for windows when rewriting junction
Browse files Browse the repository at this point in the history
  • Loading branch information
MattesMrzik committed Nov 16, 2023
1 parent a360f9f commit e295e9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public void symlink(Path source, Path targetLink) {
} else {
BasicFileAttributes attr = Files.readAttributes(targetLink, BasicFileAttributes.class,
LinkOption.NOFOLLOW_LINKS);
if (attr.isOther() && attr.isDirectory()) {
if (attr.isOther() && attr.isDirectory() && this.context.getSystemInfo().isWindows()) {
this.context.debug("Deleting symbolic link (junction) to be re-created at {}", targetLink);
Files.delete(targetLink);
}
Expand Down

0 comments on commit e295e9d

Please sign in to comment.