aboutsummaryrefslogtreecommitdiff
path: root/bin/plmu
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-08 09:17:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-08 09:17:01 +1200
commit4410d7b9abedb96fb6082a12b783f9f2ea3680b7 (patch)
tree2e3e915eea7f030a99c47d661391a5067e944f9a /bin/plmu
parentHandle different .* expansion in cf(1), dub(1) (diff)
downloaddotfiles-4410d7b9abedb96fb6082a12b783f9f2ea3680b7.tar.gz
dotfiles-4410d7b9abedb96fb6082a12b783f9f2ea3680b7.zip
Sort plenv modules list
Diffstat (limited to 'bin/plmu')
-rwxr-xr-xbin/plmu5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/plmu b/bin/plmu
index 7927ef92..b753a59a 100755
--- a/bin/plmu
+++ b/bin/plmu
@@ -10,8 +10,9 @@ if ! sort -c -- "$ef" ; then
exit 1
fi
-# Get the list of modules
-plenv list-modules |
+# Get the list of modules; sort them in case our current locale disagrees on
+# the existing sorting
+plenv list-modules | sort |
# Exclude any modules in ~.plenv/non-cpanm-modules if it exists
comm -23 -- - "$ef" |