instance.gen task: Only show files which will be actually overwritten
authorrinpatch <rinpatch@sdf.org>
Sat, 12 Dec 2020 17:35:38 +0000 (20:35 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 12 Dec 2020 17:35:38 +0000 (20:35 +0300)
lib/mix/tasks/pleroma/instance.ex

index ac8688424cc84942908b06feb39a5a0141980913..a4f1c81bce8f1c0dae5c015858c52c2f102ca9c5 100644 (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