From b4dc45cb3b94a1f696fdbb8a209499babd9d7137 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 28 May 2016 21:23:50 +0100 Subject: [PATCH] Update plugins on build --- build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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