From 827fca9a83d7cacf6815ba22d1d7cc5ae57ca927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 3 Jan 2022 21:26:14 +0200 Subject: [PATCH] build(fmt): use `[` instead of `[[` (#751) 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 567dcbc..4cb90c0 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"