# HG changeset patch # User Meredith Howard # Date 1637785361 21600 # Node ID 61c91bec34c80d94555f2bd9ee841d5ca5b8f98b # Parent 54192edeb4e557a7f23be1cd2e93e57f9bfdf504 improve this first-time install diff --git a/bin/setup-cpan-faves b/bin/setup-cpan-faves --- a/bin/setup-cpan-faves +++ b/bin/setup-cpan-faves @@ -1,7 +1,8 @@ #!/bin/bash -set -eu -o pipefail +set -euo pipefail dists=( + App::cpanminus App::cpm Perl::Tidy @@ -24,10 +25,9 @@ dists=( ) if ! (command -v cpm && cpm -V) &>/dev/null; then - curl -fsSL --compressed https://git.io/cpm | - perl - install -g App::cpm - - plenv rehash || : + cpm() { + curl -fsSL --compressed https://git.io/cpm | perl - $@ + } fi cpm install -g "${dists[@]}"