Skip to content

Commit 827fca9

Browse files
authored
build(fmt): use [ instead of [[ (#751)
When `/bin/sh` is not a shell having `[[`, `make fmt` fails: ``` FORMATTING /bin/sh: 1: [[: not found ```
1 parent ad5d74d commit 827fca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test: install-test-deps build fmt lint sec
2828
fmt:
2929
@echo "FORMATTING"
3030
@FORMATTED=`$(GO) fmt ./...`
31-
@([[ ! -z "$(FORMATTED)" ]] && printf "Fixed unformatted files:\n$(FORMATTED)") || true
31+
@([ ! -z "$(FORMATTED)" ] && printf "Fixed unformatted files:\n$(FORMATTED)") || true
3232

3333
lint:
3434
@echo "LINTING"

0 commit comments

Comments
 (0)