Browse Source

Merge pull request #11018 from gyuho/yq

scripts/release: update "yq" command
Gyuho Lee 6 years ago
parent
commit
8d823e70dd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/release

+ 2 - 1
scripts/release

@@ -63,7 +63,8 @@ main() {
   fi
 
   # 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 }')
   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)."