Fix post-shellcheck bug.

This commit is contained in:
Darko Poljak 2018-10-24 18:26:33 +02:00
parent 8c03518962
commit 6895ad0207
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ echo changed >> "$__messages_out"
# Use the good old way to set the hostname even on machines running systemd.
case "$os" in
archlinux|debian|ubuntu|devuan|centos|coreos)
printf "printf '%s\\n' '$name_should' > /etc/hostname\\n"
printf "printf '%%s\\\\n' '$name_should' > /etc/hostname\\n"
echo "hostname -F /etc/hostname"
;;
freebsd|openbsd)
@ -67,7 +67,7 @@ case "$os" in
;;
suse)
echo "hostname '$name_should'"
printf "printf '%s\\n' '$name_should' > /etc/HOSTNAME\\n"
printf "printf '%%s\\\\n' '$name_should' > /etc/HOSTNAME\\n"
;;
esac