fix: typo hashnull -> dev/null (#195)

This commit is contained in:
Bo-Yi Wu 2017-03-09 01:23:56 -06:00 committed by GitHub
parent 92b9da2f00
commit 7360bc8a04
1 changed files with 3 additions and 3 deletions

View File

@ -51,19 +51,19 @@ embedmd:
embedmd -d *.md embedmd -d *.md
errcheck: errcheck:
@hash errcheck > /hashnull 2>&1; if [ $$? -ne 0 ]; then \ @hash errcheck > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/kisielk/errcheck; \ go get -u github.com/kisielk/errcheck; \
fi fi
errcheck $(PACKAGES) errcheck $(PACKAGES)
lint: lint:
@hash golint > /hashnull 2>&1; if [ $$? -ne 0 ]; then \ @hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/golang/lint/golint; \ go get -u github.com/golang/lint/golint; \
fi fi
for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done; for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
unconvert: unconvert:
@hash unconvert > /hashnull 2>&1; if [ $$? -ne 0 ]; then \ @hash unconvert > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/mdempsky/unconvert; \ go get -u github.com/mdempsky/unconvert; \
fi fi
for PKG in $(PACKAGES); do unconvert -v $$PKG || exit 1; done; for PKG in $(PACKAGES); do unconvert -v $$PKG || exit 1; done;