From: Yann E. MORIN Date: Thu, 14 Nov 2019 19:22:09 +0000 (+0100) Subject: package/gettext-tiny: fix gettext wrapper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5afd8dfd5b3b6589441c37115cfb23aa31838f6;p=buildroot.git package/gettext-tiny: fix gettext wrapper When a textdomain is specified, we ignore it twice: we shift args, and we printf ${2}, which would yield an empty printf. Fix that by not shifting, and just printf ${2}; this is nicer. Signed-off-by: Yann E. MORIN Cc: Vadim Kochan Cc: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- diff --git a/package/gettext-tiny/gettext-wrapper b/package/gettext-tiny/gettext-wrapper index 3791a3a1aa..11424824c3 100644 --- a/package/gettext-tiny/gettext-wrapper +++ b/package/gettext-tiny/gettext-wrapper @@ -19,6 +19,6 @@ done case ${#} in (0) printf "missing arguments\n" >&2; return 1;; (1) printf "%s" "${1}";; - (2) shift; printf "%s" "${2}";; + (2) printf "%s" "${2}";; (*) printf "too many arguments\n" >&2; return 1;; esac