Web Dev Solutions

Catalin Mititiuc

From f85f240e2b7ec64a96c626857281c1a7d694c053 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 16 Jan 2025 14:55:10 -0800 Subject: Won't raise if deleting the output file fails --- lib/pandoc.ex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pandoc.ex b/lib/pandoc.ex index ca30847..669b5ff 100644 --- a/lib/pandoc.ex +++ b/lib/pandoc.ex @@ -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 diff --git a/mix.exs b/mix.exs index ab539d3..adb0ecf 100644 --- a/mix.exs +++ b/mix.exs @@ -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 -- cgit v1.2.3