Try different way of changing dir

This commit is contained in:
hadley 2016-02-17 05:09:38 +11:00
parent 4f3d31379a
commit c1951b5d68
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module Jekyll
f.flush
# http://rubyquicktips.com/post/5862861056/execute-shell-commands
content = `_plugins/knit.r temp.Rmd`
content = `cd _plugins && ./knit.r ../temp.Rmd`
if $?.exitstatus != 0
raise "Knitting failed"