Fix SC2028.
This commit is contained in:
parent
0d80b4473b
commit
02f39bcf6f
1 changed files with 2 additions and 4 deletions
|
@ -59,8 +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
|
printf "printf '%s\\n' '$name_should' > /etc/hostname\\n"
|
||||||
echo "printf '%s\n' '$name_should' > /etc/hostname"
|
|
||||||
echo "hostname -F /etc/hostname"
|
echo "hostname -F /etc/hostname"
|
||||||
;;
|
;;
|
||||||
freebsd|openbsd)
|
freebsd|openbsd)
|
||||||
|
@ -68,8 +67,7 @@ case "$os" in
|
||||||
;;
|
;;
|
||||||
suse)
|
suse)
|
||||||
echo "hostname '$name_should'"
|
echo "hostname '$name_should'"
|
||||||
# shellcheck disable=SC2028
|
printf "printf '%s\\n' '$name_should' > /etc/HOSTNAME\\n"
|
||||||
echo "printf '%s\n' '$name_should' > /etc/HOSTNAME"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue