Web Dev Solutions

Catalin Mititiuc

From 16d8324d0ca8d78d050f0dd03d718e5af2773dc2 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 12 Dec 2024 12:28:47 -0800 Subject: Pass full path to call to pandoc in mix task --- lib/mix/tasks/pandoc.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mix/tasks/pandoc.ex') diff --git a/lib/mix/tasks/pandoc.ex b/lib/mix/tasks/pandoc.ex index 179eab8..2c1573d 100644 --- a/lib/mix/tasks/pandoc.ex +++ b/lib/mix/tasks/pandoc.ex @@ -36,7 +36,7 @@ defmodule Mix.Tasks.Pandoc do |> Path.join("*#{@ext}") |> Path.wildcard() |> Enum.each(fn path -> - case Pandoc.run(profile, Path.basename(path)) do + case Pandoc.run(profile, path) do 0 -> :ok status -> Mix.raise("`mix pandoc #{Enum.join(all, " ")}` exited with #{status}") end -- cgit v1.2.3