Checking is password changing function exists
This commit is contained in:
parent
f78c4345a9
commit
4299a389cf
|
@ -77,7 +77,7 @@ function passwords_show_apps {
|
|||
# shellcheck disable=SC2068
|
||||
for a in ${APPS_AVAILABLE[@]}
|
||||
do
|
||||
if [[ $(function_exists "change_password_${a}") == "1" ]]; then
|
||||
if grep -q "change_password_" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${a}"; then
|
||||
i=$((i+1))
|
||||
W+=("$i" "$a")
|
||||
name+=("$a")
|
||||
|
|
Loading…
Reference in New Issue