Skip to content

Commit

Permalink
fix: issue when ignore_exist is set and the path already exists 🐛 (fr…
Browse files Browse the repository at this point in the history
…appe#910)

See frappe@7fb1484#diff-237d6b07e1835fbd8e51e251f66b2ec0 where the logic was changes to exclude handling this edge case
  • Loading branch information
WebsiteDeveloper authored and gavindsouza committed Jan 23, 2020
1 parent be2dd1b commit 40f7e09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False, no_auto_upda
if os.path.exists(path) and not ignore_exist:
log('Path {path} already exists!'.format(path=path))
sys.exit(0)
else:
elif not os.path.exists(path):
# only create dir if it does not exist
os.makedirs(path)

for dirname in folders_in_bench:
Expand Down

0 comments on commit 40f7e09

Please sign in to comment.