1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

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 @@ def run(["gen" | rest]) 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