Pass full path to call to pandoc in mix task
This commit is contained in:
parent
6a7d775eef
commit
83f9d740f3
@ -36,7 +36,7 @@ defmodule Mix.Tasks.Pandoc do
|
|||||||
|> Path.join("*#{@ext}")
|
|> Path.join("*#{@ext}")
|
||||||
|> Path.wildcard()
|
|> Path.wildcard()
|
||||||
|> Enum.each(fn path ->
|
|> Enum.each(fn path ->
|
||||||
case Pandoc.run(profile, Path.basename(path)) do
|
case Pandoc.run(profile, path) do
|
||||||
0 -> :ok
|
0 -> :ok
|
||||||
status -> Mix.raise("`mix pandoc #{Enum.join(all, " ")}` exited with #{status}")
|
status -> Mix.raise("`mix pandoc #{Enum.join(all, " ")}` exited with #{status}")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user