aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-03-22 14:13:12 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-03-22 14:13:12 +0100
commitccc0f05fef8b438d841b83f6e773031cbf5771aa (patch)
treed47a4f770fb6b26e9ed0eba2619592d6b1f71738 /lib
parent1548063b6ac54affecccc19872b1ffeed64f0887 (diff)
Fix Perl module check
Diffstat (limited to 'lib')
-rw-r--r--lib/main.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/main.bash b/lib/main.bash
index cf4c1a3..113f2e0 100644
--- a/lib/main.bash
+++ b/lib/main.bash
@@ -82,6 +82,7 @@ depcheck_bin() {
for tool in "${RSTAR_DEPS_BIN[@]}"
do
+ debug "Checking for availability of $tool"
command -v "$tool" > /dev/null && continue
missing+=("$tool")
@@ -108,9 +109,10 @@ depcheck_perl() {
for module in "${RSTAR_DEPS_PERL[@]}"
do
+ debug "Checking for availability of $module"
perl -M"$module" -e 0 2> /dev/null && continue
- missing+=("$tool")
+ missing+=("$module")
done
if [[ ${missing[*]} ]]