From e644f5f8c1bd33f75398a58210a80636cb02ac58 Mon Sep 17 00:00:00 2001 From: Paul Johnson Date: Thu, 25 Apr 2024 13:25:18 +0200 Subject: [PATCH] Ensure we have plenv before calling it --- utils/dc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/dc b/utils/dc index 3a087e23..22a09c70 100755 --- a/utils/dc +++ b/utils/dc @@ -159,7 +159,9 @@ main() { install_dzil) cpanm --notest App::cpm cpm install --workers="$("$0" nice_cpus)" --global Dist::Zilla - plenv rehash + if command -v plenv >/dev/null 2>&1; then + plenv rehash + fi dzil authordeps --missing | xargs cpm install --workers="$("$0" nice_cpus)" --global dzil listdeps --missing |