mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 17:24:41 +00:00
fix: Return repo_name if app_name doesn't exist
This commit is contained in:
parent
6c4bb2883b
commit
aa1a1b9a71
@ -156,8 +156,9 @@ def get_app_name(bench_path, repo_name):
|
|||||||
|
|
||||||
if app_name and repo_name != app_name:
|
if app_name and repo_name != app_name:
|
||||||
os.rename(os.path.join(apps_path, repo_name), os.path.join(apps_path, app_name))
|
os.rename(os.path.join(apps_path, repo_name), os.path.join(apps_path, app_name))
|
||||||
|
return app_name
|
||||||
|
|
||||||
return app_name
|
return repo_name
|
||||||
|
|
||||||
|
|
||||||
def new_app(app, bench_path='.'):
|
def new_app(app, bench_path='.'):
|
||||||
|
Loading…
Reference in New Issue
Block a user