aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-11 01:10:53 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-11 01:15:42 +0300
commit28a9f446868d7805bb7df8fc4a7b398e1a080f4e (patch)
tree8c659aafec0a8b438bf7d14a8d17f494304868af
parente7efdc046c69948cce2354d9d710e501100b0567 (diff)
downloadyaroslavps.com-28a9f446868d7805bb7df8fc4a7b398e1a080f4e.tar.gz
yaroslavps.com-28a9f446868d7805bb7df8fc4a7b398e1a080f4e.zip
Fix post-receive script
🤦‍♂️
-rwxr-xr-xpost-receive4
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