actually run cpm to make sure it's not a stub

Tue, 12 Nov 2019 16:23:27 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 12 Nov 2019 16:23:27 -0600
changeset 819
58f9d9741852
parent 818
3671ad077d67
child 820
9363e3a29dba

actually run cpm to make sure it's not a stub

bin/setup-cpan-faves file | annotate | diff | comparison | revisions
--- a/bin/setup-cpan-faves
+++ b/bin/setup-cpan-faves
@@ -23,7 +23,7 @@ dists=(
   Getopt::Long::Descriptive
 )
 
-if ! command -v cpm &>/dev/null; then
+if ! (command -v cpm && cpm -V) &>/dev/null; then
   curl -fsSL --compressed https://git.io/cpm |
     perl - install -g App::cpm
 

mercurial