Skip to content

Commit

Permalink
build(fmt): use [ instead of [[
Browse files Browse the repository at this point in the history
When `/bin/sh` is not a shell having `[[`, `make fmt` fails:

```
FORMATTING
/bin/sh: 1: [[: not found
```
  • Loading branch information
scop committed Jan 3, 2022
1 parent ad5d74d commit 5c6c4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -28,7 +28,7 @@ test: install-test-deps build fmt lint sec
fmt:
@echo "FORMATTING"
@FORMATTED=`$(GO) fmt ./...`
@([[ ! -z "$(FORMATTED)" ]] && printf "Fixed unformatted files:\n$(FORMATTED)") || true
@([ ! -z "$(FORMATTED)" ] && printf "Fixed unformatted files:\n$(FORMATTED)") || true

lint:
@echo "LINTING"
Expand Down

0 comments on commit 5c6c4ca

Please sign in to comment.