]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sulogin-shell: avoid heredocs
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 May 2017 21:03:25 +0000 (17:03 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 May 2017 21:03:25 +0000 (17:03 -0400)
They require a writable /tmp dir (in the bash implementation).
Let's use echo, and not 'echo -e' since that doesn't seem to be completely
portable.

Fixes #6052.

src/sulogin-shell/systemd-sulogin-shell.in

index d4f32af5f9876965765dec247b612320ff395e48..103f841a5768267b4c80b1e4f7b84e3974dca135 100755 (executable)
@@ -4,11 +4,9 @@ if [ -x /bin/plymouth ]; then
     /bin/plymouth --wait quit
 fi
 
-cat <<EOF
-You are in $1 mode. After logging in, type "journalctl -xb" to view
-system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
-boot into default mode.
-EOF
+echo "You are in $1 mode. After logging in, type \"journalctl -xb\" to view"
+echo "system logs, \"systemctl reboot\" to reboot, \"systemctl default\" or ^D to boot"
+echo "into default mode."
 
 @SULOGIN@
 @SYSTEMCTL@ --job-mode=fail --no-block default