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 }