From 044a9e4903df59a426d2d1db2753d725124c11d6 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Thu, 14 Nov 2024 09:06:56 -0500 Subject: [PATCH] workaround bsh bug --- src/it/symlink-dont-follow/setup.bsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/it/symlink-dont-follow/setup.bsh b/src/it/symlink-dont-follow/setup.bsh index c6bafed..cd7b7c4 100644 --- a/src/it/symlink-dont-follow/setup.bsh +++ b/src/it/symlink-dont-follow/setup.bsh @@ -37,7 +37,9 @@ for ( String[] pair : pairs ) File target = new File( basedir, pair[0] ); File link = new File( basedir, pair[1] ); System.out.println( "Creating symlink " + link + " -> " + target ); - Files.createSymbolicLink( target.toPath(), link.toPath() ); + Path targetPath = target.toPath(); + Path linkPath = link.toPath(); + Files.createSymbolicLink( targetPath, linkPath ); if ( !link.exists() ) { System.out.println( "Platform does not support symlinks, skipping test." );