From 28a9f446868d7805bb7df8fc4a7b398e1a080f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 11 Dec 2020 01:10:53 +0300 Subject: Fix post-receive script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤦‍♂️ --- post-receive | 4 ++-- 1 file 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 -- cgit v1.2.3