Skip to content

Commit

Permalink
bug update script doesnt pick up the latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mhristof committed Feb 15, 2020
1 parent 6abef80 commit 932d764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-for-new-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# http://redsymbol.net/articles/unofficial-bash-strict-mode/

current=$(make version)
latest=$(curl --silent https://api.github.com/repos/mhristof/alfred-pbpaste/releases | jq '.[].assets[0] | select(.browser_download_url != null) | .browser_download_url' -r)
latest=$(curl --silent https://api.github.com/repos/mhristof/alfred-pbpaste/releases | jq '.[].assets[0] | select(.browser_download_url != null) | .browser_download_url' -r | head -1)

echo $latest | grep $current &> /dev/null

Expand Down

0 comments on commit 932d764

Please sign in to comment.