instance.gen task: Only show files which will be actually overwritten

This commit is contained in:
rinpatch 2020-12-12 20:35:38 +03:00
parent f2bf2131b4
commit 6aece536eb

View File

@ -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