From 8058a73e605da094c01e228910d050c574a8f350 Mon Sep 17 00:00:00 2001 From: Mark McDonnell Date: Mon, 4 Apr 2016 14:16:03 +0100 Subject: [PATCH] Update ci-git-tag-compared-to-release.sh --- ci-git-tag-compared-to-release.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ci-git-tag-compared-to-release.sh b/ci-git-tag-compared-to-release.sh index 35a2ecc..bd744f0 100644 --- a/ci-git-tag-compared-to-release.sh +++ b/ci-git-tag-compared-to-release.sh @@ -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)