From 16088f7f1157935bcba919ead79cd9e727137375 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 14 Aug 2024 08:14:59 -0500 Subject: [PATCH] HHH-18485 - Documentation symlinks on release --- .../main/java/org/hibernate/orm/docs/UpdateSymLinksTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-build-plugins/src/main/java/org/hibernate/orm/docs/UpdateSymLinksTask.java b/local-build-plugins/src/main/java/org/hibernate/orm/docs/UpdateSymLinksTask.java index d8a8e34b1d..e91be81b75 100644 --- a/local-build-plugins/src/main/java/org/hibernate/orm/docs/UpdateSymLinksTask.java +++ b/local-build-plugins/src/main/java/org/hibernate/orm/docs/UpdateSymLinksTask.java @@ -107,11 +107,11 @@ public class UpdateSymLinksTask extends DefaultTask { try (FileWriter commandFileWriter = new FileWriter( commandFile )) { commandFileWriter.write( "cd " + serverBaseDir + "/stable\n" ); - commandFileWriter.write( "rm orm\n" ); + commandFileWriter.write( "-rm orm\n" ); commandFileWriter.write( String.format( Locale.ROOT, "ln -s ../orm/%s orm\n", releaseName ) ); commandFileWriter.write( "cd " + serverBaseDir + "/orm\n" ); - commandFileWriter.write( "rm current\n" ); + commandFileWriter.write( "-rm current\n" ); commandFileWriter.write( String.format( Locale.ROOT, "ln -s %s current\n", releaseName ) ); commandFileWriter.flush();