fix addTextToFile & tests
This commit is contained in:
parent
c1e3bfbd41
commit
284d2e4a36
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ fun Prov.addTextToFile(
|
||||||
return@taskWithResult ProvResult(true, out = "Text already in file")
|
return@taskWithResult ProvResult(true, out = "Text already in file")
|
||||||
}
|
}
|
||||||
cmd(
|
cmd(
|
||||||
"printf '%s' " + "${text + "\n"}"
|
"printf '%s' " + text
|
||||||
.escapeAndEncloseByDoubleQuoteForShell() + " | ${sudoAsText(sudo)} tee -a ${file.path} > /dev/null"
|
.escapeAndEncloseByDoubleQuoteForShell() + " | ${sudoAsText(sudo)} tee -a ${file.path} > /dev/null"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue