This commit is contained in:
mail@sobolevn.me 2016-03-13 14:09:47 +03:00
parent 1904ebdb86
commit 38983de6ee

View File

@ -4,12 +4,13 @@ set -e
function update_gh_branch { function update_gh_branch {
local branch_name=$(git branch | grep '*' | sed 's/* //')
git checkout gh-pages git checkout gh-pages
make make
git add _posts git add _posts
git commit -m 'documentation update' git commit -m 'documentation update'
git checkout master git checkout "$branch_name"
} }
update_gh_branch update_gh_branch