From: Harald Hoyer Date: Fri, 12 Feb 2021 12:26:10 +0000 (+0100) Subject: fix: shellcheck for modules.d/10i18n/parse-i18n.sh X-Git-Tag: 052~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d2574d50919a94e754bf89edc4887e51993f336;p=thirdparty%2Fdracut.git fix: shellcheck for modules.d/10i18n/parse-i18n.sh --- diff --git a/modules.d/10i18n/parse-i18n.sh b/modules.d/10i18n/parse-i18n.sh index 220ed7c50..16c0f04e0 100755 --- a/modules.d/10i18n/parse-i18n.sh +++ b/modules.d/10i18n/parse-i18n.sh @@ -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