File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ git show "$known_good_commit" >/dev/null 2>&1 ||
2727 die " $known_good_commit not found" \
2828 " we need to be in a repo cloned from $repo_url "
2929
30+ cur_branch=$( git rev-parse --abbrev-ref HEAD)
31+ test " $cur_branch " = " master" || die " please switch to the 'master' branch"
32+
3033test -d " $src_dir " || die " no source '$src_dir ' directory"
3134
3235test -d " $dst_dir " || die " no destination '$dst_dir ' directory"
@@ -55,11 +58,6 @@ next_month=$(LANG=C date "+%B %Y")
5558prev_month=$( LANG=C date --date=" $today - 1 month" " +%B %Y" )
5659
5760
58- # If needed make sure we are up-to-date
59-
60- git checkout master
61- git pull horigin master
62-
6361# Publish current draft
6462
6563git mv " $src_dir " /edition-$cur .md " $dst_dir " /$today -edition-$cur .markdown
You can’t perform that action at this time.
0 commit comments