diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-04-01 13:00:56 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-04-01 13:00:56 +0200 |
commit | 91a2f63812702f596bb20a1cbe26a527a7b2da80 (patch) | |
tree | f2ad1870839663fa67e32c0e2888393bc8da5986 | |
parent | dfaaaf5a7f0d0a15c3fd27086487b03e9ebf0b4a (diff) |
Don't attempt to show perl manager if none is defined
-rw-r--r-- | lib/main.bash | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/main.bash b/lib/main.bash index a5aaa6c..1edcf0f 100644 --- a/lib/main.bash +++ b/lib/main.bash @@ -187,8 +187,11 @@ depcheck_perl() { alert " $module" done - info "The missing Perl modules can be installed using this command:" - info "$(config_etc_kv perlmans.txt "${RSTAR_PLATFORM[key]}") $(join_args -c " " "${missing[@]}")" + if grep -q "^${RSTAR_PLATFORM[key]}=" "$BASEDIR/etc/perlmans.txt" + then + info "The missing Perl modules can be installed using this command:" + info "$(config_etc_kv perlmans.txt "${RSTAR_PLATFORM[key]}") $(join_args -c " " "${missing[@]}")" + fi return 1 fi |