[skip ci] added new line, refactoring method parameter
This commit is contained in:
parent
f7e82af2a3
commit
c3858e4490
2 changed files with 4 additions and 2 deletions
src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue