From 1398431521d7d318226b0077a3c867c7ac741ac6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 6 Sep 2024 21:40:28 +0200 Subject: [PATCH 1/2] indent --- spcd/bootstrap.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index ce0d154..d6453a1 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -922,19 +922,19 @@ spcd_txt_locale() { local regex for name in "${@}"; do case "${name}" in - # LC_CTYPE - "LC_NUMERIC") regex="^\(decimal\|thousands\|grouping\)" ;; - "LC_TIME") regex="^\(day\|mon\)" ;; - # LC_COLLATE - "LC_MONETARY") regex="^\(int_curr\|currency\|mon_\)" ;; - "LC_MESSAGES") regex="^\(yes\|no\)" ;; - "LC_PAPER") regex="^\(height\|width\)" ;; - "LC_NAME") regex="^name_m" ;; - "LC_ADDRESS") regex="^\(country\|lang\)_name" ;; - "LC_TELEPHONE") regex="^int_" ;; - "LC_MEASUREMENT") regex="^measurement=" ;; - "LC_IDENTIFICATION") regex="^\(language\|territory\|title\)" ;; - *) ;; + # LC_CTYPE + "LC_NUMERIC") regex="^\(decimal\|thousands\|grouping\)" ;; + "LC_TIME") regex="^\(day\|mon\)" ;; + # LC_COLLATE + "LC_MONETARY") regex="^\(int_curr\|currency\|mon_\)" ;; + "LC_MESSAGES") regex="^\(yes\|no\)" ;; + "LC_PAPER") regex="^\(height\|width\)" ;; + "LC_NAME") regex="^name_m" ;; + "LC_ADDRESS") regex="^\(country\|lang\)_name" ;; + "LC_TELEPHONE") regex="^int_" ;; + "LC_MEASUREMENT") regex="^measurement=" ;; + "LC_IDENTIFICATION") regex="^\(language\|territory\|title\)" ;; + *) ;; esac spcd_split echo "${name}" From c64014d61704c4caa5b53f56b56ad59d71754ddc Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 6 Sep 2024 21:43:02 +0200 Subject: [PATCH 2/2] unset regex --- spcd/bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index d6453a1..a3b484a 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -921,6 +921,7 @@ spcd_txt_locale() { "show") local regex for name in "${@}"; do + unset regex case "${name}" in # LC_CTYPE "LC_NUMERIC") regex="^\(decimal\|thousands\|grouping\)" ;;