]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Force final newline in xmlstarlet
authorJon DeVree <nuxi@vault24.org>
Sat, 3 Feb 2024 17:09:58 +0000 (12:09 -0500)
committerDimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sun, 4 Feb 2024 18:09:34 +0000 (19:09 +0100)
commitdf51074281a81cdc047e2275292d666439d14fdc
treece91d196f7962bbaa91efd9bc3a536a682e6b227
parenteade82803964e551e62d178070b3df0f6761038d
Force final newline in xmlstarlet

By default xmlstarlet does not include a final newline on the output.
Because POSIX says that all lines must end in a newline, this causes the
final line of output to be skipped by the 'while read ...' loop in bash.
Adding a '-n' after the '-v ...' causes xmlstarlet to include a final
newline at the end of its output.

Signed-off-by: Jon DeVree <nuxi@vault24.org>
trojans/csd-post.sh