diff --git a/misc/modconfig b/misc/modconfig index 0fd07b063..a8bb1610d 100755 --- a/misc/modconfig +++ b/misc/modconfig @@ -274,7 +274,7 @@ xdetect-modules) mc_new_mod_state=enabled fi fi - if test "${mc_new_mod_state}" = enabled; then + if test "${mc_new_mod_state}" = enabled && [[ -n $(find $mc_mod_bin_dir/${mc_mod}".mod" -name \*.c) ]]; then ${mc_self_call} -q add ${mc_mod} else ${mc_self_call} -q del ${mc_mod}