package/gettext-tiny: fix gettext wrapper
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 14 Nov 2019 19:22:09 +0000 (20:22 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 Nov 2019 21:14:20 +0000 (22:14 +0100)
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 <yann.morin.1998@free.fr>
Cc: Vadim Kochan <vadim4j@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gettext-tiny/gettext-wrapper

index 3791a3a1aa8dbe5f139f78864785244fc088d229..11424824c3917321389af167f115a6b99bb771aa 100644 (file)
@@ -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