Skip to content

Commit

Permalink
workaround bsh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 14, 2024
1 parent a90df51 commit 044a9e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/it/symlink-dont-follow/setup.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -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." );
Expand Down

0 comments on commit 044a9e4

Please sign in to comment.