diff --git a/build b/build index e38d55c..0f2dd75 100755 --- a/build +++ b/build @@ -14,6 +14,15 @@ set -e pyvenv env env/bin/pip install -r requirements.txt -git clone --recursive https://github.com/getpelican/pelican-plugins plugins/ || echo "Plugins already installed!" +if [ -d "plugins/" ]; then + echo ">> Updating plugins" + cd plugins/ + git pull + git submodule update --recursive + cd - +else + git clone --recursive https://github.com/getpelican/pelican-plugins plugins/ +fi + npm install