Skip to content

Commit

Permalink
make: avoid the message "warning: undefined variable 'CI'"
Browse files Browse the repository at this point in the history
Signed-off-by: Maël Valais <mael@vls.dev>
  • Loading branch information
maelvls committed Mar 30, 2022
1 parent e2266d7 commit 555544d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make/e2e-setup.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ endef
# Let's separate the pulling of the Kind image so that more tasks can be
# run in parallel when running "make -j e2e-setup". In CI, the Docker
# engine being stripped on every job, we save the kind image to
# "bin/downloads".
# "bin/downloads". Side note: we don't use "$(CI)" directly since we would
# get the message "warning: undefined variable 'CI'".
.PHONY: preload-kind-image
ifeq ($(CI),)
ifeq ($(shell printenv CI),)
preload-kind-image: bin/tools/crane
@$(CTR) inspect $(IMAGE_kind_$(CRI_ARCH)) 2>/dev/null >&2 || (set -x; $(CTR) pull $(IMAGE_kind_$(CRI_ARCH)))
else
Expand Down

0 comments on commit 555544d

Please sign in to comment.