feat: only download hugo when there's a newer version
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
5aef7575a0
commit
4fc713392b
6
deploy
6
deploy
@ -3,9 +3,11 @@
|
|||||||
USR=dotyaoverlord
|
USR=dotyaoverlord
|
||||||
HOST=dotya.ml
|
HOST=dotya.ml
|
||||||
DIR=public/
|
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 init
|
||||||
git submodule update
|
git submodule update
|
||||||
~/bin/hugo version
|
~/bin/hugo version
|
||||||
|
Loading…
Reference in New Issue
Block a user