Won't raise if deleting the output file fails

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-17 11:17:37 -07:00
parent 09ca9b8245
commit cecfa859f8
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ defmodule Pandoc do
not File.cd!(opts[:cd], fn ->
input_files |> Enum.map(&File.exists?(&1)) |> Enum.all?()
end) do
parsed_args[:output] |> Path.expand(opts[:cd]) |> File.rm!()
parsed_args[:output] |> Path.expand(opts[:cd]) |> File.rm()
else
bin_path() |> System.cmd(args ++ extra_args, opts) |> elem(1)
end

View File

@ -1,7 +1,7 @@
defmodule Pandoc.MixProject do
use Mix.Project
@version "0.3.0"
@version "0.3.1"
@source_url "https://webdevcat.me/git/pandoc/"
def project do