Enabled the removal of a trailing slash when sourcing examples from examples.json

pull/8479/head
Cruz Monrreal II 2018-09-26 14:21:10 -05:00 committed by adbridge
parent 81c8520889
commit cdfefd9d0c
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ def deploy_repos(config, examples):
print("\nDeploying example repos....\n") print("\nDeploying example repos....\n")
for example in config['examples']: for example in config['examples']:
for repo_info in get_repo_list(example): for repo_info in get_repo_list(example):
name = basename(repo_info['repo']) name = basename(repo_info['repo'].strip('/'))
if name in examples: if name in examples:
if os.path.exists(name): if os.path.exists(name):
os.chdir(name) os.chdir(name)