action,locale
Some checks failed
/ arch (push) Successful in 2m58s
/ alpine (push) Successful in 1m57s
/ fedora (push) Successful in 11m56s
/ opensuse (push) Successful in 3m32s
/ alma (push) Successful in 12m23s
/ rocky (push) Successful in 11m27s
/ ubuntu (push) Successful in 7m2s
/ debian (push) Failing after 3m32s
Some checks failed
/ arch (push) Successful in 2m58s
/ alpine (push) Successful in 1m57s
/ fedora (push) Successful in 11m56s
/ opensuse (push) Successful in 3m32s
/ alma (push) Successful in 12m23s
/ rocky (push) Successful in 11m27s
/ ubuntu (push) Successful in 7m2s
/ debian (push) Failing after 3m32s
This commit is contained in:
parent
18de897329
commit
05ccc94e9c
1 changed files with 7 additions and 5 deletions
|
@ -378,6 +378,8 @@ spcd_txt_get() {
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_txt_locale() {
|
spcd_txt_locale() {
|
||||||
|
local action="${1}"
|
||||||
|
local locale="${2}"
|
||||||
set -- \
|
set -- \
|
||||||
"LANG" \
|
"LANG" \
|
||||||
"LC_CTYPE" \
|
"LC_CTYPE" \
|
||||||
|
@ -393,22 +395,22 @@ spcd_txt_locale() {
|
||||||
"LC_MEASUREMENT" \
|
"LC_MEASUREMENT" \
|
||||||
"LC_IDENTIFICATION"
|
"LC_IDENTIFICATION"
|
||||||
local value name
|
local value name
|
||||||
if [ "${1}" = "set" ]; then
|
if [ "${action}" = "set" ]; then
|
||||||
if [ -n "${2}" ]; then
|
if [ -n "${locale}" ]; then
|
||||||
value="${2}"
|
value="${locale}"
|
||||||
else
|
else
|
||||||
value="${_SPCD_TXT_LOCALE_DEFAULT}"
|
value="${_SPCD_TXT_LOCALE_DEFAULT}"
|
||||||
fi
|
fi
|
||||||
value="${value}.${_SPCD_TXT_CHARSET}"
|
value="${value}.${_SPCD_TXT_CHARSET}"
|
||||||
fi
|
fi
|
||||||
for name in "${@}"; do
|
for name in "${@}"; do
|
||||||
case "${1}" in
|
case "${action}" in
|
||||||
"list") spcd_os_printenv "${name}" ;;
|
"list") spcd_os_printenv "${name}" ;;
|
||||||
"set") export "${name}=${value}" ;;
|
"set") export "${name}=${value}" ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if [ "${1}" = "set" ]; then
|
if [ "${action}" = "set" ]; then
|
||||||
spcd_txt_locale "list"
|
spcd_txt_locale "list"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue