Won't raise if deleting the output file fails
This commit is contained in:
parent
09ca9b8245
commit
cecfa859f8
@ -172,7 +172,7 @@ defmodule Pandoc do
|
|||||||
not File.cd!(opts[:cd], fn ->
|
not File.cd!(opts[:cd], fn ->
|
||||||
input_files |> Enum.map(&File.exists?(&1)) |> Enum.all?()
|
input_files |> Enum.map(&File.exists?(&1)) |> Enum.all?()
|
||||||
end) do
|
end) do
|
||||||
parsed_args[:output] |> Path.expand(opts[:cd]) |> File.rm!()
|
parsed_args[:output] |> Path.expand(opts[:cd]) |> File.rm()
|
||||||
else
|
else
|
||||||
bin_path() |> System.cmd(args ++ extra_args, opts) |> elem(1)
|
bin_path() |> System.cmd(args ++ extra_args, opts) |> elem(1)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user