awk -v rejects a newline in the value, and the old writer treated that
failure as an empty edit. The temporary file then held only the new
assignment, so the rest of the configuration was lost.
Pass the value in the environment and replace the last assignment by
joining that line through end of file. A quoted newline stays with the
value, and the text after it stays after the closer. If awk exits
above 1, leave the file alone. sh -n still refuses a value that would
break the quotes.
PR: 283729