]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/10i18n/parse-i18n.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/10i18n/parse-i18n.sh

index 220ed7c50413217153305885a5275d1b88ea9ae4..16c0f04e0856e1f90292b500d873dafa0f7566ce 100755 (executable)
@@ -7,10 +7,10 @@ inst_key_val() {
     _file="$1"; shift
     _key="$1"; shift
     _default="$1"; shift
-    _value="$(getarg $@)"
+    _value="$(getarg "$@")"
     [ -z "${_value}" ] && _value=$_default
     if [ -n "${_value}" ]; then
-        printf '%s="%s"\n' ${_key} ${_value} >> $_file
+        printf -- '%s="%s"\n' "${_key}" "${_value}" >> "$_file"
     fi
     unset _file
     unset _value