feat: added bin to $PATH + moved version check to gethugo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-06-03 12:46:10 +02:00
parent 4029290dfb
commit 3af0a7366e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

12
deploy

@ -4,14 +4,16 @@ USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
export HUGO_VERSION=$1
PATH=~/.local/bin:$PATH
gethugo $HUGO_VERSION
if [ $(hugo version | grep -q ${HUGO_VERSION}; echo $?) -eq 1 ]; then
~/bin/gethugo $HUGO_VERSION
fi
git submodule init
git submodule update
~/bin/hugo version
~/bin/hugo --gc=true --minify
which hugo
hugo version
hugo --gc=true --minify
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${DIR}