Disable SC2028 where intended.

This commit is contained in:
Darko Poljak 2018-10-05 12:02:10 +02:00
parent ed542cc7cb
commit 28889ef38a
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -298,7 +298,7 @@ END
fi fi
EOF EOF
# shellcheck disable=SC2028
echo "printf \"%s\\n%s\n%s\n\" \"\$jailheader\" \"\$jaildata\" \"\$jailtrailer\" >>\"\$jailfile\"" echo "printf \"%s\\n%s\n%s\n\" \"\$jailheader\" \"\$jaildata\" \"\$jailtrailer\" >>\"\$jailfile\""
# Add $name to jail_list if $onboot=yes # Add $name to jail_list if $onboot=yes