Skip to content

Commit

Permalink
Merge pull request #5 from mhristof/bug-update-script-doesnt-pick-up-…
Browse files Browse the repository at this point in the history
…the-latest

bug-update-script-doesnt-pick-up-the-latest
  • Loading branch information
mhristof authored Feb 15, 2020
2 parents 6abef80 + 2bfc647 commit 9820ed6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mversion:

validate:
xmllint info.plist
awk '/items/,/<\/string/' info.plist | grep -v items | sed 's/.*string>\[/\[/g' | sed 's!</string>!!g' | jq
awk '/items/,/<\/string/' info.plist | grep -v items | sed 's/.*string>\[/\[/g' | sed 's!</string>!!g' | jq .

fragment:
@echo $(CURRENT_BRANCH) | tr -s '-' ' ' | cut -d ' ' -f1
Expand Down
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
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ echo -n $dest</string>
</dict>
</dict>
<key>version</key>
<string>0.2.1</string>
<string>0.2.2</string>
<key>webaddress</key>
<string>https://github.com/mhristof/alfred-pbpaste</string>
</dict>
Expand Down

0 comments on commit 9820ed6

Please sign in to comment.