mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00: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:
parent
ad5d74d5a1
commit
827fca9a83
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -28,7 +28,7 @@ test: install-test-deps build fmt lint sec
|
||||||
fmt:
|
fmt:
|
||||||
@echo "FORMATTING"
|
@echo "FORMATTING"
|
||||||
@FORMATTED=`$(GO) fmt ./...`
|
@FORMATTED=`$(GO) fmt ./...`
|
||||||
@([[ ! -z "$(FORMATTED)" ]] && printf "Fixed unformatted files:\n$(FORMATTED)") || true
|
@([ ! -z "$(FORMATTED)" ] && printf "Fixed unformatted files:\n$(FORMATTED)") || true
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "LINTING"
|
@echo "LINTING"
|
||||||
|
|
Loading…
Reference in a new issue