diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-10-29 22:04:56 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-10-29 22:32:53 -0200 |
commit | 53e7eaab86355089e65b23d23cb712008df6389d (patch) | |
tree | d290d299bdf6374d450b12e5f7e40b776d3a5143 /libre/filesystem/locale.sh | |
parent | 4bc8dbe6ee560c3fb6e96d62cf5caba3513cf4d3 (diff) |
filesystem-2014.10-3.parabola1: updating version
* avoid overwriting LANG in locale.sh (FS#42162 -> https://bugs.archlinux.org/task/42162)
* give more realistic examples in /etc/crypttab (FS#34452 -> https://bugs.archlinux.org/task/34452)
* remove tracking of /var/cache/man. man-db controls this directory
* update Parabola URL
Diffstat (limited to 'libre/filesystem/locale.sh')
-rw-r--r-- | libre/filesystem/locale.sh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libre/filesystem/locale.sh b/libre/filesystem/locale.sh index 3cfc89c1b..b66587203 100644 --- a/libre/filesystem/locale.sh +++ b/libre/filesystem/locale.sh @@ -1,14 +1,13 @@ #!/bin/sh -unset LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES \ - LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION - -if [ -n "$XDG_CONFIG_HOME" ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]; then - . "$XDG_CONFIG_HOME/locale.conf" -elif [ -n $HOME ] && [ -r $HOME/.config/locale.conf ]; then - . "$HOME/.config/locale.conf" -elif [ -r /etc/locale.conf ]; then - . /etc/locale.conf +if [ -z "$LANG" ]; then + if [ -n "$XDG_CONFIG_HOME" ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]; then + . "$XDG_CONFIG_HOME/locale.conf" + elif [ -n $HOME ] && [ -r $HOME/.config/locale.conf ]; then + . "$HOME/.config/locale.conf" + elif [ -r /etc/locale.conf ]; then + . /etc/locale.conf + fi fi LANG=${LANG:-C} |