blog/_githooks/post-receive
2016-09-10 16:11:01 -07:00

9 lines
245 B
Bash
Executable file

#!/bin/bash -l
GIT_REPO=$HOME/repositories/blog.git
TMP_GIT_CLONE=$HOME/tmp/git/blog
PUBLIC_WWW=/var/www/www/testbuild
git clone $GIT_REPO $TMP_GIT_CLONE
jekyll build --source $TMP_GIT_CLONE --destination $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit