public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nuo Cheng <zhanhb88@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/setup] update_services: lang.sh: fix compatibility issues with dash
Date: Mon, 22 Jun 2026 15:56:34 GMT	[thread overview]
Message-ID: <178214379445.1.2890060398875424419.rpms-setup-aae1771e2281@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/setup
Branch : update_services
Commit : aae1771e2281440b3cd6e399c68d70d2db19d06a
Author : Nuo Cheng <zhanhb88@gmail.com>
Date   : 2026-02-09T22:51:47+00:00
Stats  : +1/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/setup/c/aae1771e2281440b3cd6e399c68d70d2db19d06a?branch=update_services

Log:
lang.sh: fix compatibility issues with dash

---
diff --git a/lang.sh b/lang.sh
index f42efa6..5f8a7a6 100644
--- a/lang.sh
+++ b/lang.sh
@@ -59,7 +59,7 @@ fi
 
 # The ${LANG} manipulation is necessary only in virtual terminal (a.k.a. console - /dev/tty*):
 if [ -n "${LANG}" ] && [ "${TERM}" = 'linux' ] && /usr/bin/tty | /usr/bin/grep --quiet -e '/dev/tty'; then
-    if /usr/bin/grep --quiet -E -i -e '^.+\.utf-?8$' <<< "${LANG}"; then
+    if printf %s "${LANG}" | /usr/bin/grep --quiet -E -i -e '^.+\.utf-?8$'; then
         case ${LANG} in
             ja*)    LANG=en_US.UTF-8 ;;
             ko*)    LANG=en_US.UTF-8 ;;

                 reply	other threads:[~2026-06-22 15:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178214379445.1.2890060398875424419.rpms-setup-aae1771e2281@fedoraproject.org \
    --to=zhanhb88@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox