make: prevent "warning: undefined variable 'CI'"
Signed-off-by: Maël Valais <mael@vls.dev>
This commit is contained in:
parent
ae0632c1f0
commit
15c19384b7
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user