public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/setup] update_services: lang.sh: fix compatibility issues with dash
@ 2026-06-22 15:56 Nuo Cheng
  0 siblings, 0 replies; only message in thread
From: Nuo Cheng @ 2026-06-22 15:56 UTC (permalink / raw)
  To: git-commits

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 ;;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-22 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 15:56 [rpms/setup] update_services: lang.sh: fix compatibility issues with dash Nuo Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox