usr_sbin/grml-hostname: Fix a couple of shellcheck warnings
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 Mar 2021 15:27:22 +0000 (16:27 +0100)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 3 Dec 2021 11:54:54 +0000 (12:54 +0100)
commit4f3413a694cd23d7c5d397d698402f5088131ae2
tree257cc2573668c21958fbeea2a55edc7f38085502
parenteb97848aaf700ab117306609bfe3fe62280953c2
usr_sbin/grml-hostname: Fix a couple of shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\(".
- Ignore SC1117: Backslash is literal in "\s". Prefer explicit escaping: "\\s".
- Ignore SC1117: Backslash is literal in "\)". Prefer explicit escaping: "\\)".
- Ignore SC1117: Backslash is literal in "\1". Prefer explicit escaping: "\\1".
- Ignore SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\(".
- Ignore SC1117: Backslash is literal in "\s". Prefer explicit escaping: "\\s".
- Ignore SC1117: Backslash is literal in "\)". Prefer explicit escaping: "\\)".
- Ignore SC1117: Backslash is literal in "\1". Prefer explicit escaping: "\\1".
- SC2046: Quote this to prevent word splitting.
usr_sbin/grml-hostname