From 6db13325d7e5b1a132d1380da46f1df83ad1da9c Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Thu, 25 Nov 2021 17:52:03 +0100 Subject: [PATCH] scripts: fix theme detection --- scripts/gx-teaching | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/gx-teaching b/scripts/gx-teaching index 89e434d..10f05ed 100755 --- a/scripts/gx-teaching +++ b/scripts/gx-teaching @@ -12,9 +12,11 @@ echo "basedir = $BASEDIR" echo "docker_image = $DOCKER_IMAGE" 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" - 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