Makefile: '[[' misinterpreted as a command

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2021-01-25 13:46:31 -05:00
parent ced0ce3470
commit 3d350a825e
No known key found for this signature in database
GPG Key ID: 524F155275DF0C3E
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ lint: .lint
CLEAN_FILES += .lint
.lint: $(SOURCE_FILES)
@if [[ "$(findstring $(GO_VER),$(shell go version))" != "" ]] ; then \
@if [ "$(findstring $(GO_VER),$(shell go version))" != "" ] ; then \
set -e ; for dir in $(NO_VENDOR_DIR) ; do golint -set_exit_status $$dir ; done && touch $@ \
else \
touch $@ ; \
@ -70,7 +70,7 @@ $(BUILD): $(SOURCE_FILES)
install.tools:
@go get -u github.com/fatih/color ; \
if [[ "$(findstring $(GO_VER),$(shell go version))" != "" ]] ; then \
if [ "$(findstring $(GO_VER),$(shell go version))" != "" ] ; then \
go get -u golang.org/x/lint/golint ;\
fi