mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
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:
parent
ab43e2accb
commit
58c1db54a8
@ -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
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user