Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(tools): Use correct hash when automatically updating flatpak version
Browse files Browse the repository at this point in the history
Before v0.2.9 would be sorted below v0.2.12, giving the wrong hash.
  • Loading branch information
anthonybilinski committed Nov 22, 2020
1 parent 4139765 commit 9fb96b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/update-toxcore-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ update_osx() {

update_flatpak() {
cd flatpak
latest_tag_ref=$(git ls-remote --tags https://github.com/toktok/c-toxcore | tail -n1)
latest_tag_ref=$(git ls-remote --tags https://github.com/toktok/c-toxcore | sort -V -k2 | tail -n1)
ref_array=($latest_tag_ref)
commit_hash=${ref_array[0]}
perl -i -0pe "s|(https://github.com/toktok/c-toxcore.*?)$VERSION_PATTERN(.*?)[a-f0-9]{40}|\${1}$@\${2}$commit_hash|gms" io.github.qtox.qTox.json
Expand Down

0 comments on commit 9fb96b0

Please sign in to comment.