From f905383ebeca7518d79fde7c3ee82703c757dc98 Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:36:08 +0200 Subject: [PATCH] Pass logfile argument down to modules --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 64ddcf5..b325a9e 100755 --- a/install.sh +++ b/install.sh @@ -59,7 +59,8 @@ function installModules() { filteredOptions=() generateModuleOptions filterPasswordOptions - [[ "${verbose}" = true ]] && moduleOptions+=(-v) + [[ "${verbose}" == true ]] && moduleOptions+=(-v) + [[ -n ${logfile} ]] && moduleOptions+=(-d ${logfile}) lop -- -d "Running ${mod}" -d "with ${#moduleOptions} args:" -d "${filteredOptions}" runModule ${mod} ${moduleOptions} done