Skip to content

Commit

Permalink
Fix the inconsistent use of tabs and spaces in update_package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
d35ha committed Feb 3, 2025
1 parent 96ec867 commit 44c11d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils/update_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def get_latest_version(org, project, version):
latest_version = response.json()["tag_name"]
# version excludes `v` from the capturing group in the regex in update_github_url therefore latest_version_match mustn't include `v` if the version starts with `v`. Otherwise the github URL would replace the version without the `v` with the github version tag with the `v` which will result in the wrong URL such as: https://github.com/jstrosch/sclauncher/releases/download/vv0.0.6/sclauncher.exe
if latest_version.startswith('v'):
return latest_version[1:]
return latest_version[1:]
else:
return latest_version
return latest_version


# Get url response's content hash (SHA256)
Expand Down

0 comments on commit 44c11d6

Please sign in to comment.