From 220f6e477e1047fde2dc80dd4d643f073f5f74f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 31 Dec 2021 16:56:28 +0200 Subject: [PATCH] build(fmt): use `[` instead of `[[` When `/bin/sh` is not a shell having `[[`, `make fmt` fails: ``` FORMATTING /bin/sh: 1: [[: not found ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e28818c648..d4fdf43a77 100644 --- a/Makefile +++ b/Makefile @@ -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"