build(fmt): use [ instead of [[ (#751)

When `/bin/sh` is not a shell having `[[`, `make fmt` fails:

```
FORMATTING
/bin/sh: 1: [[: not found
```
This commit is contained in:
Ville Skyttä 2022-01-03 21:26:14 +02:00 committed by GitHub
parent ad5d74d5a1
commit 827fca9a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ test: install-test-deps build fmt lint sec
fmt: fmt:
@echo "FORMATTING" @echo "FORMATTING"
@FORMATTED=`$(GO) fmt ./...` @FORMATTED=`$(GO) fmt ./...`
@([[ ! -z "$(FORMATTED)" ]] && printf "Fixed unformatted files:\n$(FORMATTED)") || true @([ ! -z "$(FORMATTED)" ] && printf "Fixed unformatted files:\n$(FORMATTED)") || true
lint: lint:
@echo "LINTING" @echo "LINTING"