Skip to content

Commit

Permalink
Fix generate repo script again as it still requires a whitespace stri…
Browse files Browse the repository at this point in the history
…p on the URL
  • Loading branch information
Josh5 committed Jan 12, 2022
1 parent bfa0297 commit 5d55661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ def install_requirements(plugin_source_path):
print()
configured_remote_origin = os.popen('git remote get-url --push origin').read()
repo_path = re.sub('^(?:http[s]*:\/\/github.com[\/]*)|(?:git@github\.com:)|(?:\.git$)', '', configured_remote_origin)
repo_path = repo_path.strip()
repo_info['repo_data_directory'] = "https://raw.githubusercontent.com/{}/repo/".format(repo_path)
repo_info['repo_data_url'] = repo_info['repo_data_directory'] + "repo/repo.json"
repo_info['repo_data_url'] = repo_info['repo_data_directory'] + "repo.json"
repo_data['repo'] = repo_info

# Install repo_data to repo's plugins.json file
Expand Down

0 comments on commit 5d55661

Please sign in to comment.