aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorivanfoo <sanfru.ivan@gmail.com>2016-01-27 13:10:02 +0100
committerivanfoo <sanfru.ivan@gmail.com>2016-01-27 17:47:36 +0100
commitcebea5eaba59b9b5ab1bbf19675494cf75f1c095 (patch)
treed3f99e7d5c7218af53ca2f3ec2333fe9b66e90c3 /Makefile
parent5e0030a4375550360d1ab703741a4477e99e8534 (diff)
downloadgo-git-cebea5eaba59b9b5ab1bbf19675494cf75f1c095.tar.gz
added default shell to makefile
changed if to a more standard syntax
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 272425f..18e9991 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \