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
1 changed files with 1 additions and 1 deletions

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