From 6895ad0207a58a5d22efd2943b872afbd1225204 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Wed, 24 Oct 2018 18:26:33 +0200 Subject: [PATCH] Fix post-shellcheck bug. --- cdist/conf/type/__hostname/gencode-remote | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist/conf/type/__hostname/gencode-remote b/cdist/conf/type/__hostname/gencode-remote index fc50b651..33947f7f 100755 --- a/cdist/conf/type/__hostname/gencode-remote +++ b/cdist/conf/type/__hostname/gencode-remote @@ -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