From 5c6c4cad24bfa55c021ceb97e55ce27ac4a4eba8 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 567dcbcc57..4cb90c0143 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"