From 932d76407b8bdd86e6ac1ff7dfd16acd73bcca66 Mon Sep 17 00:00:00 2001 From: Mike Christofilopoulos Date: Sat, 15 Feb 2020 18:55:30 +0000 Subject: [PATCH 1/3] bug update script doesnt pick up the latest --- check-for-new-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 7d2665c0275925f06ccdb8a4c75827d8d6d582a0 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 15 Feb 2020 18:56:09 +0000 Subject: [PATCH 2/3] bumped version --- info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2bfc64723d092ee38f94085f5c837a159bb8d14f Mon Sep 17 00:00:00 2001 From: Mike Christofilopoulos Date: Sat, 15 Feb 2020 18:58:16 +0000 Subject: [PATCH 3/3] fixing jq validate --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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