make: notify user if yq is going to be installed

Notify about yq installation, and make the output of curl silent.

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
This commit is contained in:
Marco Vedovati 2018-11-16 17:40:50 +01:00
parent ab43e2accb
commit 58c1db54a8
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function install_yq() {
yq_version=$(basename "${yq_latest_url}") yq_version=$(basename "${yq_latest_url}")
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}" local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
curl -o "${yq_path}" -L ${yq_url} curl -o "${yq_path}" -LSs ${yq_url}
chmod +x ${yq_path} chmod +x ${yq_path}
if ! command -v "${yq_path}" >/dev/null; then if ! command -v "${yq_path}" >/dev/null; then

View File

@ -8,6 +8,7 @@
have_yq=$(shell if [ -x "$(GOPATH)/bin/yq" ]; then echo "true"; else echo ""; fi) have_yq=$(shell if [ -x "$(GOPATH)/bin/yq" ]; then echo "true"; else echo ""; fi)
ifeq (,$(have_yq)) ifeq (,$(have_yq))
$(info INFO: yq was not found, installing it)
install_yq=$(shell .ci/install-yq.sh) install_yq=$(shell .ci/install-yq.sh)
endif endif
ifneq (,$(install_yq)) ifneq (,$(install_yq))