Commit Graph

2 Commits

Author SHA1 Message Date
Jan Staněk
d72ffaead4
shell: add preceding newline to delimiter
at uses heredoc redirection to pass the script being executed
into user's defined $SHELL. However, the heredoc delimiter
is directly concatenated to the script's contents;
if these contents do not end with a newline,
the delimiter is attached to the last line of the script.

This patch adds a single newline to be always emmited before the
delimiter. This guarantees the delimiter is always on it's own
line. In case a newline is already present at the end of the original
script, this simply adds a single empty line; I cannot think of any
complication that could result from that.

Resolves: rhbz#2070450
2022-03-31 12:13:56 +02:00
Ondřej Pohořelský
e046bce812 Update to new upstream release 2021-05-21 13:09:17 +02:00