Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
make: notify user if yq is going to be installed
Browse files Browse the repository at this point in the history
Notify about yq installation, and make the output of curl silent.

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
  • Loading branch information
marcov committed Nov 16, 2018
1 parent ab43e2a commit 58c1db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/install-yq.sh
Expand Up @@ -59,7 +59,7 @@ function install_yq() {
yq_version=$(basename "${yq_latest_url}")

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}

if ! command -v "${yq_path}" >/dev/null; then
Expand Down
1 change: 1 addition & 0 deletions golang.mk
Expand Up @@ -8,6 +8,7 @@

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

0 comments on commit 58c1db5

Please sign in to comment.