mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-22 00:15:39 +00:00
Makefile: '[[' misinterpreted as a command
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
ced0ce3470
commit
3d350a825e
1 changed files with 2 additions and 2 deletions
4
Makefile
4
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue