Checking is password changing function exists

This commit is contained in:
Bob Mottram 2018-03-18 10:48:38 +00:00
parent f78c4345a9
commit 4299a389cf
1 changed files with 1 additions and 1 deletions

View File

@ -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")