diff options
author | ivanfoo <sanfru.ivan@gmail.com> | 2016-01-27 13:10:02 +0100 |
---|---|---|
committer | ivanfoo <sanfru.ivan@gmail.com> | 2016-01-27 17:47:36 +0100 |
commit | cebea5eaba59b9b5ab1bbf19675494cf75f1c095 (patch) | |
tree | d3f99e7d5c7218af53ca2f3ec2333fe9b66e90c3 | |
parent | 5e0030a4375550360d1ab703741a4477e99e8534 (diff) | |
download | go-git-cebea5eaba59b9b5ab1bbf19675494cf75f1c095.tar.gz |
added default shell to makefile
changed if to a more standard syntax
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +# Default shell +SHELL := /bin/bash + # General WORKDIR = $(PWD) @@ -23,7 +26,7 @@ test-coverage: echo "" > $(COVERAGE_REPORT); \ for dir in `find . -name "*.go" | grep -o '.*/' | sort | uniq`; do \ $(GOTEST) $$dir -coverprofile=$(COVERAGE_PROFILE) -covermode=$(COVERAGE_MODE); \ - if (($$? != 0)); then \ + if [ $$? != 0 ]; then \ exit 2; \ fi; \ if [ -f $(COVERAGE_PROFILE) ]; then \ |