Merge pull request #1398 from teawater/curl

ci: check curl before use it
This commit is contained in:
Julio Montes 2019-03-21 08:17:38 -06:00 committed by GitHub
commit a7ccc24c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,11 @@ function install_yq() {
mkdir -p "${GOPATH}/bin"
# Check curl
if ! command -v "curl" >/dev/null; then
die "Please install curl"
fi
# Workaround to get latest release from github (to not use github token).
# Get the redirection to latest release on github.
yq_latest_url=$(curl -Ls -o /dev/null -w %{url_effective} "https://${yq_pkg}/releases/latest")