Skip to content

Commit

Permalink
fix: Return repo_name if app_name doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Sep 10, 2020
1 parent 6c4bb28 commit aa1a1b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/app.py
Expand Up @@ -156,8 +156,9 @@ def get_app_name(bench_path, repo_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))
return app_name

return app_name
return repo_name


def new_app(app, bench_path='.'):
Expand Down

0 comments on commit aa1a1b9

Please sign in to comment.