Skip to content

Commit

Permalink
fix(package.py): properly replace gh repo details inside auto-updater…
Browse files Browse the repository at this point in the history
….php
  • Loading branch information
nedpals committed Apr 4, 2024
1 parent 027c297 commit 25fe1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
if 'GH_USERNAME' in os.environ and 'GH_REPO' in os.environ:
with open(os.path.join(__dir__, 'inc', 'auto-updater.php'), 'r+') as file:
data = file.read()
data = data.replace('GH_USERNAME', os.environ['GH_USERNAME'])
data = data.replace('GH_REPO', os.environ['GH_REPO'])
data = data.replace('{{GH-USERNAME}}', os.environ['GH_USERNAME'])
data = data.replace('{{GH-REPO-NAME}}', os.environ['GH_REPO'])
file.seek(0)
file.write(data)
file.truncate()
Expand Down

0 comments on commit 25fe1b0

Please sign in to comment.