]>
Witch of Git - web/blog/blob - publish.sh
3 if output
=$
(git status
--porcelain) && [ -n "$output" ]; then
4 echo "Working directory not clean. Stash or commit your changes."
9 if ! eleventy
--output=$dir; then
14 starting_branch
=$
(git symbolic-ref
--short HEAD
)
18 echo "blog.witchoflight.com" > docs
/CNAME
20 git commit
-m "Publish"
21 git checkout
"$starting_branch"
22 echo "Committed. Run: git push $(git remote) master:master"