ignore cp if file already exists
This commit is contained in:
@@ -11,7 +11,7 @@ do
|
|||||||
file_out=`echo $filename | sed -e 's/\.md/\.html/g'`
|
file_out=`echo $filename | sed -e 's/\.md/\.html/g'`
|
||||||
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css custom.css
|
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css custom.css
|
||||||
if [ -f ./templates/custom.css ]; then
|
if [ -f ./templates/custom.css ]; then
|
||||||
cp ./templates/custom.css ./html/custom.css
|
cp -n ./templates/custom.css ./html/custom.css
|
||||||
fi
|
fi
|
||||||
echo output $file_out
|
echo output $file_out
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user