From: rinpatch Date: Sat, 12 Dec 2020 17:35:38 +0000 (+0300) Subject: instance.gen task: Only show files which will be actually overwritten X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6aece536eb394fd82e1368e7ae3e484959d05d8c;p=akkoma instance.gen task: Only show files which will be actually overwritten --- diff --git a/lib/mix/tasks/pleroma/instance.ex b/lib/mix/tasks/pleroma/instance.ex index ac8688424..a4f1c81bc 100644 --- a/lib/mix/tasks/pleroma/instance.ex +++ b/lib/mix/tasks/pleroma/instance.ex @@ -253,7 +253,7 @@ defmodule Mix.Tasks.Pleroma.Instance do else shell_error( "The task would have overwritten the following files:\n" <> - (Enum.map(paths, &"- #{&1}\n") |> Enum.join("")) <> + (Enum.map(will_overwrite, &"- #{&1}\n") |> Enum.join("")) <> "Rerun with `--force` to overwrite them." ) end