2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +00:00

Avoid continue loop

This commit is contained in:
Jitendra Mishra 2024-09-23 09:04:47 +05:30 committed by GitHub
parent bb2e324257
commit 877bf09afa
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