[Fix] App diagnosis grep

This commit is contained in:
Kayou 2021-09-20 11:49:49 +02:00 committed by GitHub
parent f4793a6f0a
commit 636fc1cf6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ class AppDiagnoser(Diagnoser):
for deprecated_helper in deprecated_helpers:
if (
os.system(
f"grep -nr -q '{deprecated_helper}' {app['setting_path']}/scripts/"
f"grep -hr '{deprecated_helper}' {app['setting_path']}/scripts/ | grep -v -q '^\s*#'"
)
== 0
):