From 6ac91b3bc730ad8d3476288911e596bbfd2b8880 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 May 2022 00:42:45 +0200 Subject: allow action.list_deps to use any module --- actions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions.sh') diff --git a/actions.sh b/actions.sh index 9eb4a37..f950a82 100755 --- a/actions.sh +++ b/actions.sh @@ -42,8 +42,9 @@ check_manifest () { help_text="$help_text list_deps\t[]\tlists all non core dependencies\n" list_deps () { + module=${1:-JWebmail} core="$(corelist -v v5.34.1 | awk '{ print $1 }')" - deps="$(perl -wE 'use lib "lib"; use Module::Load::Conditional "requires"; @res = requires "JWebmail"; $" = "\n"; say $res[0] ? "@res" : ""')" + deps="$(perl -wE "use lib 'lib'; use Module::Load::Conditional 'requires'; @res = requires '$module'; \$\" = qq(\n); say \$res[0] ? qq(@res) : ''")" for dep in $deps do -- cgit v1.2.3