aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-06-20 10:53:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-06-20 10:53:46 +1200
commit1eb73809939f3c2f126fb95536cf9cba321865d2 (patch)
tree6faea547638adee7aafb427a1ad9e580c7f4d25b
parentAdd newline (diff)
downloaddotfiles-1eb73809939f3c2f126fb95536cf9cba321865d2.tar.gz
dotfiles-1eb73809939f3c2f126fb95536cf9cba321865d2.zip
Move LANG setting to top
-rwxr-xr-xbin/plenv-modules-update9
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"