From 92cae36417b08266afb921db4f54fe98c626bc9a Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Mon, 23 Apr 2018 23:18:03 -0300 Subject: [PATCH] [chore] don't allow publish if branch is not master. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ae0e1cf4..e1ca9564 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,7 @@ check-working-tree: .branch: @echo "[Release from branch]" @git branch | grep '^*' | awk '{ print $$2 }' > .branch + @[[ "`git branch | awk '{ print $$2 }'`" != "master" ]] && echo "Fail. Current branch is not master." && exit 1 @echo "Current branch: `cat .branch`" changelog: