make: prevent "warning: undefined variable 'CI'"

Signed-off-by: Maël Valais <mael@vls.dev>
This commit is contained in:
Maël Valais 2022-03-29 11:23:34 +02:00
parent ae0632c1f0
commit 15c19384b7

View File

@ -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