mirror of
https://github.com/securego/gosec.git
synced 2026-01-15 01:33:41 +08:00
build(fmt): use [ instead of [[ (#751)
When `/bin/sh` is not a shell having `[[`, `make fmt` fails: ``` FORMATTING /bin/sh: 1: [[: not found ```
This commit is contained in:
2
Makefile
2
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"
|
||||
|
||||
Reference in New Issue
Block a user