From 221fecef52964765ce9a33224f9d12d574a8421f Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 9 Jun 2020 11:50:46 -0400 Subject: [PATCH] overlay/15fcos: coreos-check-ssh-keys: add missing newline to output Currently we're missing a newline when printing information about the SSH keys on the console: ``` Ignition: user provided config was applied Ignition: wrote ssh authorized keys file for user: coreAfterburn: wrote ssh authorized keys file for user: core ``` Let's add a newline if needed. --- overlay.d/15fcos/usr/libexec/coreos-check-ssh-keys.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overlay.d/15fcos/usr/libexec/coreos-check-ssh-keys.sh b/overlay.d/15fcos/usr/libexec/coreos-check-ssh-keys.sh index 06114b7642..db557e45a0 100755 --- a/overlay.d/15fcos/usr/libexec/coreos-check-ssh-keys.sh +++ b/overlay.d/15fcos/usr/libexec/coreos-check-ssh-keys.sh @@ -28,6 +28,10 @@ main() { output+="$ignitionusers" fi if [ -n "$afterburnusers" ]; then + # add newline if needed + if [ -n "$output" ]; then + output+=$'\n' + fi output+="$afterburnusers" fi