Commit 2fd6054

mo khan <mo.khan@gmail.com>
2019-09-02 17:03:27
Ensure the current working directory is the root of the project
1 parent 4298d0c
Changed files (1)
Rakefile
@@ -26,9 +26,11 @@ def run_cli(selection = nil)
 end
 
 task(:pdf) do
-  readmes = (Dir["src/**/*.md"] + ['README.md']).sort
-  readmes.each do |file|
-    sh "node ./node_modules/.bin/mdpdf #{file}"
+  Dir.chdir(__dir__) do
+    readmes = (Dir["src/**/*.md"] + ['README.md']).sort
+    readmes.each do |file|
+      sh "node ./node_modules/.bin/mdpdf #{file}"
+    end
   end
 end