Commit Graph

2 Commits

Author SHA1 Message Date
Jan Staněk
55072d7e68
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#2070858
Signed-off-by: Jan Staněk <jstanek@redhat.com>
2022-04-01 13:13:19 +02:00
Petr Šabata
925bb63e15 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/at#4bce1dc99fc097b5f9eb8080a50ecd88bd4268f2
2020-10-14 21:58:13 +02:00