From c3858e449017b881c1a2dc7e31a514fa7064aa7f Mon Sep 17 00:00:00 2001
From: zam <mirco.zachmann@meissa.de>
Date: Wed, 5 Feb 2025 13:07:15 +0100
Subject: [PATCH] [skip ci] added new line, refactoring method parameter

---
 .../provs/desktop/infrastructure/Go.kt                        | 4 +++-
 .../provs/desktop/infrastructure/NpmByNvm.kt                  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Go.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Go.kt
index 3da6420..af0e1a2 100644
--- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Go.kt
+++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Go.kt
@@ -34,7 +34,9 @@ fun Prov.installGo(
         cmd("tar -C /usr/local -xzf $target/go1.23.5.linux-amd64.tar.gz", sudo = true)
         deleteFile("$target/$filename")
         configureBashForUser()
-        createFile("~/.bashrc.d/go.sh", "export PATH=\$PATH:/usr/local/go/bin\n")
+        val bashConfigFile = "~/.bashrc.d/go.sh"
+        val content = "export PATH=\$PATH:/usr/local/go/bin\n"
+        createFile(bashConfigFile, content)
         // check and assert installation
         addResult(checkGoVersion(version), info = "Go version $version has been installed.")
     } else {
diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NpmByNvm.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NpmByNvm.kt
index 0bcf674..74bffdb 100644
--- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NpmByNvm.kt
+++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NpmByNvm.kt
@@ -26,7 +26,7 @@ fun Prov.installNpmByNvm(version: String = "0.40.1"): ProvResult = task {
         val content = """
             export NVM_DIR="${userHome()}.nvm"
             [ -s "${"\$NVM_DIR/nvm.sh"}" ] && \. "${"\$NVM_DIR/nvm.sh"}"
-            """.trimIndent()
+            """ + "\n".trimIndent()
         createFile(bashConfigFile, content)
 
         // install Node.js and NPM