Bläddra i källkod

Checking is password changing function exists

Bob Mottram 7 år sedan
förälder
incheckning
4299a389cf
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/freedombone-sec

+ 1
- 1
src/freedombone-sec Visa fil

@@ -77,7 +77,7 @@ function passwords_show_apps {
77 77
     # shellcheck disable=SC2068
78 78
     for a in ${APPS_AVAILABLE[@]}
79 79
     do
80
-        if [[ $(function_exists "change_password_${a}") == "1" ]]; then
80
+        if grep -q "change_password_" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${a}"; then
81 81
             i=$((i+1))
82 82
             W+=("$i" "$a")
83 83
             name+=("$a")