2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-22 22:58:31 +00:00

Merge pull request #1584 from jmishra01/avoid_multiple_check

fix: Avoid continue loop in is_bench_directory
This commit is contained in:
gavin 2024-10-24 11:50:28 +02:00 committed by GitHub
commit af8ed34201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,9 @@ def is_bench_directory(directory=os.path.curdir):
for folder in paths_in_bench:
path = os.path.abspath(os.path.join(directory, folder))
is_bench = is_bench and os.path.exists(path)
# Once is_bench becomes false, it will always be false, even if other path exists.
if not is_bench:
break
return is_bench