Actually pass inverse to loadModules

This commit is contained in:
T. R. Bernstein
2024-07-02 01:07:09 +02:00
committed by T. R. Bernstein
parent 31d96b4591
commit 2fd98a1154

View File

@@ -134,7 +134,8 @@ function main() {
[[ ${host_specific_only} == 'false' ]] && modpath+=("${_DIR}/modules")
[[ ${host_specific} == 'true' || ${host_specific_only} == 'true' ]] && modpath+=("${_DIR}/modules/host-specific")
loadModules -v modulesToInstall ${$(echo -m):^^modpath} "${module[@]}"
{ [[ ${inverse} == true ]] && inverse=-i } || inverse=
loadModules -v modulesToInstall ${$(echo -m):^^modpath} ${inverse} "${module[@]}"
[ "${list}" = true ] && printModulesToInstall
askNecessaryQuestions