From 4299a389cff6205fa278c922ecfe5cefcbfc331a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Mar 2018 10:48:38 +0000 Subject: [PATCH] Checking is password changing function exists --- src/freedombone-sec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-sec b/src/freedombone-sec index d2d39630..a9b19b84 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -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")