mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
fix: issue when ignore_exist is set and the path already exists 🐛 (#910)
See 7fb1484b7f (diff-237d6b07e1835fbd8e51e251f66b2ec0)
where the logic was changes to exclude handling this edge case
This commit is contained in:
parent
be2dd1b31a
commit
40f7e09c0f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user