From cc25f7aa8c7c6bcabe935b07ac6b2445bd74d5c7 Mon Sep 17 00:00:00 2001
From: zam <mirco.zachmann@meissa.de>
Date: Tue, 18 Feb 2025 09:23:08 +0100
Subject: [PATCH] [skip ci] fix :: new line missing

---
 .../provs/framework/ubuntu/filesystem/base/Filesystem.kt        | 2 +-
 src/main/resources/version.txt                                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/filesystem/base/Filesystem.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/filesystem/base/Filesystem.kt
index 097f7cf..00899c2 100644
--- a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/filesystem/base/Filesystem.kt
+++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/filesystem/base/Filesystem.kt
@@ -240,7 +240,7 @@ fun Prov.addTextToFile(
             return@taskWithResult ProvResult(true, out = "Text already in file")
         }
         cmd(
-            "printf '%s' " + text
+            "printf '%s' " + "${text + "\n"}"
                 .escapeAndEncloseByDoubleQuoteForShell() + " | ${sudoAsText(sudo)} tee -a ${file.path} > /dev/null"
         )
     }
diff --git a/src/main/resources/version.txt b/src/main/resources/version.txt
index aab6b3d..981e7db 100644
--- a/src/main/resources/version.txt
+++ b/src/main/resources/version.txt
@@ -1 +1 @@
-0.39.9-SNAPSHOT
\ No newline at end of file
+0.40.1-SNAPSHOT
\ No newline at end of file