diff --git a/Makefile b/Makefile index df450c2..31c98c8 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ mversion: validate: xmllint info.plist - awk '/items/,/<\/string/' info.plist | grep -v items | sed 's/.*string>\[/\[/g' | sed 's!!!g' | jq + awk '/items/,/<\/string/' info.plist | grep -v items | sed 's/.*string>\[/\[/g' | sed 's!!!g' | jq . fragment: @echo $(CURRENT_BRANCH) | tr -s '-' ' ' | cut -d ' ' -f1 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 diff --git a/info.plist b/info.plist index 21f0ceb..fdd847a 100644 --- a/info.plist +++ b/info.plist @@ -450,7 +450,7 @@ echo -n $dest version - 0.2.1 + 0.2.2 webaddress https://github.com/mhristof/alfred-pbpaste