0
0
mirror of https://github.com/letic/Shell-Scripts.git synced 2024-09-27 21:46:03 +00:00

Update ci-git-tag-compared-to-release.sh

This commit is contained in:
Mark McDonnell 2016-04-04 14:16:03 +01:00
parent 4d8f435bac
commit 8058a73e60

View File

@ -1,13 +1,13 @@
latest_release=$(curl \
--cert /etc/pki/tls/certs/client.crt \
--key /etc/pki/tls/private/client.key \
--header 'Content-Type: application/json' \
--silent \
https://my.api.com/component/foo/releases | \
grep -Eo '"version": "[[:digit:]]+' | \
cut -d : -f 2 | \
cut -d '"' -f 2 | \
head -n 1)
--cert /etc/pki/tls/certs/client.crt \
--key /etc/pki/tls/private/client.key \
--header 'Content-Type: application/json' \
--silent \
https://my.api.com/component/foo/releases | \
grep -Eo '"version": "[[:digit:]]+' | \
cut -d : -f 2 | \
cut -d '"' -f 2 | \
head -n 1)
tag=$(git tag | tail -n 1)