daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash  
  2.  
  3. COMMIT_MESSAGE=`git log -n 1 --pretty=format:%s ${local_ref}`
  4.  
  5. hugo -d ~/Webs/kainlite.github.io
  6.  
  7. ANYTHING_CHANGED=`cd ~/Webs/kainlite.github.io && git diff --exit-code`
  8.  
  9. if [[ $? -gt 0 ]]; then
  10.     cd ~/Webs/kainlite.github.io && git add . && git commit -m "${COMMIT_MESSAGE}" && git push origin master
  11. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top