From 3d350a825e7606ff19521b601796050db30c42c0 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 25 Jan 2021 13:46:31 -0500 Subject: [PATCH] Makefile: '[[' misinterpreted as a command Signed-off-by: Vincent Batts --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 82d0ff9..ef52ea7 100644 --- a/Makefile +++ b/Makefile @@ -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