From 15c19384b71d04c03f6083f14470f7c82e47e143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Valais?= Date: Tue, 29 Mar 2022 11:23:34 +0200 Subject: [PATCH] make: prevent "warning: undefined variable 'CI'" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maƫl Valais --- make/tools.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make/tools.mk b/make/tools.mk index 7d406f6d5..4c323db49 100644 --- a/make/tools.mk +++ b/make/tools.mk @@ -113,7 +113,10 @@ unvendor-go: bin/tools/go # # Details on how "bin/downloaded" gets cached are available in the # description of the PR https://github.com/jetstack/testing/pull/651. -ifeq ($(CI),) +# +# We use "printenv CI" instead of just "ifeq ($(CI),)" because otherwise we +# would get "warning: undefined variable 'CI'". +ifeq ($(shell printenv CI),) LN := ln -f -s else LN := cp -f -r