diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-20 10:53:46 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-20 10:53:46 +1200 |
commit | 1eb73809939f3c2f126fb95536cf9cba321865d2 (patch) | |
tree | 6faea547638adee7aafb427a1ad9e580c7f4d25b | |
parent | Add newline (diff) | |
download | dotfiles-1eb73809939f3c2f126fb95536cf9cba321865d2.tar.gz dotfiles-1eb73809939f3c2f126fb95536cf9cba321865d2.zip |
Move LANG setting to top
-rwxr-xr-x | bin/plenv-modules-update | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/plenv-modules-update b/bin/plenv-modules-update index 7898616d..c5fea8c9 100755 --- a/bin/plenv-modules-update +++ b/bin/plenv-modules-update @@ -1,5 +1,8 @@ #!/usr/bin/env bash +LANG=C.UTF-8 +export LANG + mf=$(mktemp) || exit ef=$(mktemp) || exit cf=$(mktemp) || exit @@ -9,9 +12,9 @@ cleanup() { } trap cleanup EXIT -plenv list-modules | LANG=C.UTF-8 sort > "$mf" -LANG=C.UTF-8 sort "$HOME"/.plenv/non-cpanm-modules > "$ef" -LANG=C.UTF-8 comm -23 -- "$mf" "$ef" > "$cf" +plenv list-modules | sort > "$mf" +sort "$HOME"/.plenv/non-cpanm-modules > "$ef" +comm -23 -- "$mf" "$ef" > "$cf" while read -r module ; do cpanm --from http://cpan.inspire.net.nz --notest --quiet -- "$module" |