Skip to content

Commit

Permalink
Only configure modules containing code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann authored Jul 6, 2024
1 parent df66050 commit 085583e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/modconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 085583e

Please sign in to comment.