feature/21176 #1
|
@ -183,12 +183,16 @@ def printReport(report) {
|
|||
text += "\n"
|
||||
}
|
||||
println text
|
||||
sh("""
|
||||
printf "%s" $text > $WALKER_NOTES
|
||||
""")
|
||||
appendNotes(text)
|
||||
|
||||
}
|
||||
|
||||
manuele.simi marked this conversation as resolved
|
||||
def appendNotes(report) {
|
||||
sh("""
|
||||
echo -e "${report}" > $WALKER_NOTES
|
||||
""")
|
||||
}
|
||||
|
||||
// print the final report
|
||||
def saveReport(report) {
|
||||
def text = ''
|
||||
|
|
Loading…
Reference in New Issue
You don't need the shebang here.
Are you referring to the bash shell?
I've used the bash shell otherwise the
echo -e
option doesn't work.Is there an easier way to do that?
echo
(without -e) works for sure without the shebang.But if it does work for you, leave like that. It's a detail.
Yes it works but without the "-e" option the backslashes are not escapes. The result is an unreadable file.