diff options
-rwxr-xr-x | post-receive | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/post-receive b/post-receive index ce7687c..f806331 100755 --- a/post-receive +++ b/post-receive @@ -14,13 +14,13 @@ workingpath="$HOME/hook-clones/$reponame" while read LINE; do if [ "$(echo ${LINE} | awk '{ print $3; }')" = "refs/heads/master" ] + then cd "$HOME/hook-clones" - git clone $reponame + git clone $barepath cd $reponame zola build --output-dir="/home/webuser/www/yaroslavps.com/" cd .. rm -rf "$reponame" exit 0 - then fi done |