From 2fd98a1154e2f04ee780847fa3974caef4c09d12 Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:07:09 +0200 Subject: [PATCH] Actually pass inverse to loadModules --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b5ac6f5..85088db 100755 --- a/install.sh +++ b/install.sh @@ -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