Filter option values instead of option names
This commit is contained in:
@@ -45,8 +45,8 @@ function generateModuleOptions() {
|
|||||||
function filterPasswordOptions() {
|
function filterPasswordOptions() {
|
||||||
local opt= hide=false
|
local opt= hide=false
|
||||||
for opt in ${moduleOptions}; do
|
for opt in ${moduleOptions}; do
|
||||||
[[ $opt =~ ^--?.*password ]] && hide=true
|
|
||||||
[[ ${hide} = true ]] && { opt='******'; hide=false }
|
[[ ${hide} = true ]] && { opt='******'; hide=false }
|
||||||
|
[[ $opt =~ ^--?.*password ]] && hide=true
|
||||||
filteredOptions+=($opt)
|
filteredOptions+=($opt)
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user