From 32457fc4a46972c3515e3dbed536900e785d18d9 Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Wed, 27 Apr 2022 09:37:16 +0200 Subject: [PATCH] Filter option values instead of option names --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f715b4d..42926e1 100755 --- a/install.sh +++ b/install.sh @@ -45,8 +45,8 @@ function generateModuleOptions() { function filterPasswordOptions() { local opt= hide=false for opt in ${moduleOptions}; do - [[ $opt =~ ^--?.*password ]] && hide=true [[ ${hide} = true ]] && { opt='******'; hide=false } + [[ $opt =~ ^--?.*password ]] && hide=true filteredOptions+=($opt) done }