feat: added bin to $PATH + moved version check to gethugo
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4029290dfb
commit
3af0a7366e
12
deploy
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}
|
||||
|
Loading…
Reference in New Issue
Block a user