소스 검색

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