mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts/release: update "yq" command
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
65e226ad92
commit
1f4f8ae731
@ -63,7 +63,8 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check go version.
|
# Check go version.
|
||||||
local go_version="go$(yq -r ".go[0]" .travis.yml)"
|
# download "yq" from https://github.com/mikefarah/yq
|
||||||
|
local go_version="go$(yq read .travis.yml "go[0]")"
|
||||||
local current_go_version=$(go version | awk '{ print $3 }')
|
local current_go_version=$(go version | awk '{ print $3 }')
|
||||||
if [[ "${current_go_version}" != "${go_version}" ]]; then
|
if [[ "${current_go_version}" != "${go_version}" ]]; then
|
||||||
echo "Current go version is ${current_go_version}, but etcd ${RELEASE_VERSION} requires ${go_version} (see .travis.yml)."
|
echo "Current go version is ${current_go_version}, but etcd ${RELEASE_VERSION} requires ${go_version} (see .travis.yml)."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user