scripts: fix theme detection

This commit is contained in:
Glenn Y. Rolland 2021-11-25 17:52:03 +01:00
parent 6b9a8f9921
commit 3572ceffed

View file

@ -12,9 +12,11 @@ echo "basedir = $BASEDIR"
echo "docker_image = $DOCKER_IMAGE" echo "docker_image = $DOCKER_IMAGE"
echo "action = $ACTION" echo "action = $ACTION"
if [ -f "$BASEDIR/.marp/theme.css" ]; then if [ -f "$BASEDIR/.marp/theme.scss" ]; then
DOCKER_OPT_MARP_THEME="-v $BASEDIR/.marp:/app/.marp" DOCKER_OPT_MARP_THEME="-v $BASEDIR/.marp:/app/.marp"
echo "Detected Marp theme. Adding option to command line ($DOCKER_OPT_MARP_THEME)" echo "Theme: detected Marp files. Adding option to command line ($DOCKER_OPT_MARP_THEME)"
else
echo "Theme: no theme detected. Using default files"
fi fi