feat: only download hugo when there's a newer version
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-05-31 03:31:13 +02:00
parent 5aef7575a0
commit 4fc713392b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

6
deploy

@ -3,9 +3,11 @@
USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
HUGO_VERSION=$1
export HUGO_VERSION=$1
~/bin/gethugo $HUGO_VERSION
if [ $(hugo version | grep -q ${HUGO_VERSION}) -eq 1 ]; then
~/bin/gethugo $HUGO_VERSION
fi
git submodule init
git submodule update
~/bin/hugo version