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