X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/blobdiff_plain/3de94867133c1436c6d6dc9ea9565354d5bc2c53..HEAD:/bin/knit_lessons.sh?ds=sidebyside diff --git a/bin/knit_lessons.sh b/bin/knit_lessons.sh index ff5443b..141c136 100755 --- a/bin/knit_lessons.sh +++ b/bin/knit_lessons.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash -if [ -d "_episodes_rmd" ] ; then - Rscript -e "source('bin/generate_md_episodes.R')" +# Only try running R to translate files if there are some files present. +# The Makefile passes in the names of files. + +if [ $# -eq 2 ] ; then + Rscript -e "source('bin/generate_md_episodes.R')" "$@" fi