From 698354eb08051db0cfb2b6c0327f2103f56f8ff5 Mon Sep 17 00:00:00 2001 From: Rehan Haider Date: Wed, 3 Nov 2021 12:26:41 +0530 Subject: [PATCH] Made addons optional --- entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5fee2b6..3964bb9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,7 +13,11 @@ pip install -r requirements.txt echo 'Building site πŸ‘· ' pelican -D ${PELICAN_CONTENT_FOLDER:=content} -o ${PELICAN_OUTPUT_FOLDER:=output} -s ${PELICAN_CONFIG_FILE:=publishconf.py} -echo 'Running add-ons βž•βž• ' -python addons.py +if [ -f addons.py ]; then + echo 'Running add-ons βž•βž• ' + python addons.py +else + echo 'No add-ons configured' +fi echo 'Build complete πŸŽ‰πŸŽ‰ πŸ•ΊπŸ’ƒ '