Skip to content

Commit 14b21c4

Browse files
committed
Use command instead of which in Makefile for better portability
1 parent 13f6a06 commit 14b21c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $(BIN): $(SRC) fmt ## Build binary for this platform
88
.PHONY: fmt dist clean help
99

1010
dist: $(SRC) fmt ## Build distribution binaries for all platforms using gox
11-
@which gox &> /dev/null || go get github.com/mitchellh/gox
11+
@command -v gox 2> /dev/null || go get github.com/mitchellh/gox
1212
gox -output "$(DIST_DIR)/$(BIN)_{{.OS}}_{{.Arch}}"
1313

1414
fmt: $(SRC) ## Lint with gofmt

0 commit comments

Comments
 (0)