diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-12-09 03:07:34 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-12-09 03:07:34 +0100 |
commit | 988c0fe1c86d97b1693ae4aa5ac31be901e85775 (patch) | |
tree | 195410b6c818b993a11f96f748d1e7f7e6f53c13 | |
parent | f40378376d30eb8413ef16b265cd758fc84b0ded (diff) | |
download | dotfiles-988c0fe1c86d97b1693ae4aa5ac31be901e85775.tar.gz dotfiles-988c0fe1c86d97b1693ae4aa5ac31be901e85775.tar.xz dotfiles-988c0fe1c86d97b1693ae4aa5ac31be901e85775.zip |
fix redirection of stderr
2>&1 has to be after the redirection of stdout
-rw-r--r-- | bashrc/common/locale.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bashrc/common/locale.sh b/bashrc/common/locale.sh index b75b3aa..72c70d3 100644 --- a/bashrc/common/locale.sh +++ b/bashrc/common/locale.sh @@ -2,10 +2,10 @@ eval unset ${!LC_*} LANG -if hash locale 2>&1 >/dev/null ; then - if locale -a | grep "en_US.UTF-8" 2>&1 >/dev/null ; then +if hash locale >/dev/null 2>&1 ; then + if locale -a | grep "en_US.UTF-8" >/dev/null 2>&1 ; then export LANG="en_US.UTF-8" - elif locale -a | grep "en_US.utf8" 2>&1 >/dev/null ; then + elif locale -a | grep "en_US.utf8" >/dev/null 2>&1 ; then export LANG="en_US.utf8" fi fi |