Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- COMMIT_MESSAGE=`git log -n 1 --pretty=format:%s ${local_ref}`
- hugo -d ~/Webs/kainlite.github.io
- ANYTHING_CHANGED=`cd ~/Webs/kainlite.github.io && git diff --exit-code`
- if [[ $? -gt 0 ]]; then
- cd ~/Webs/kainlite.github.io && git add . && git commit -m "${COMMIT_MESSAGE}" && git push origin master
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement