Przeglądaj źródła

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 <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>
(cherry picked from commit b5afd8dfd5b3b6589441c37115cfb23aa31838f6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Yann E. MORIN 5 lat temu
rodzic
commit
55e347999b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      package/gettext-tiny/gettext-wrapper

+ 1 - 1
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