瀏覽代碼

Checking is password changing function exists

Bob Mottram 7 年之前
父節點
當前提交
4299a389cf
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/freedombone-sec

+ 1
- 1
src/freedombone-sec 查看文件

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