diff --git a/check-for-new-release.sh b/check-for-new-release.sh index 2016037..7e43264 100755 --- a/check-for-new-release.sh +++ b/check-for-new-release.sh @@ -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