diff options
-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 |