scripts: fix theme detection
This commit is contained in:
parent
3d28838756
commit
6db13325d7
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue