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