Fix error in answers cache logic

This commit is contained in:
T. R. Bernstein
2024-06-27 16:05:10 +02:00
committed by T. R. Bernstein
parent d8d641c671
commit 349120f0a3

View File

@@ -6,16 +6,16 @@ runModule() {
} }
function askNecessaryQuestions() { function askNecessaryQuestions() {
local mod= configOnlyArgs=() local mod= configArgs=()
config setappname "de.astzweig.macos.system-setup" config setappname "de.astzweig.macos.system-setup"
if [ -n "${config_only}" ]; then if [ -n "${config_only}" ]; then
lop -- -d "Config only option given with value:" -d "${config_only}" lop -- -d "Config only option given with value:" -d "${config_only}"
config setconfigfile "${config_only}" config setconfigfile "${config_only}"
configOnlyArgs=(-x)
elif [ -n "${config}" ]; then elif [ -n "${config}" ]; then
config setconfigfile "${config}" config setconfigfile "${config}"
configArgs=(-x)
fi fi
askUserModuleQuestions ${configOnlyArgs} -c config -v moduleAnswers ${modulesToInstall} askUserModuleQuestions ${configArgs} -c config -v moduleAnswers ${modulesToInstall}
} }
function printModulesToInstall() { function printModulesToInstall() {