From 38983de6ee22de88b126c9c2637e76b832ae7a85 Mon Sep 17 00:00:00 2001 From: "mail@sobolevn.me" Date: Sun, 13 Mar 2016 14:09:47 +0300 Subject: [PATCH] staging --- utils/gh-branch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/gh-branch.sh b/utils/gh-branch.sh index 8cace525..cf8a32db 100755 --- a/utils/gh-branch.sh +++ b/utils/gh-branch.sh @@ -4,12 +4,13 @@ set -e function update_gh_branch { + local branch_name=$(git branch | grep '*' | sed 's/* //') git checkout gh-pages make git add _posts git commit -m 'documentation update' - git checkout master + git checkout "$branch_name" } update_gh_branch