diff --git a/lib/pleroma/release_tasks.ex b/lib/pleroma/release_tasks.ex index a3fbde397..e43eef070 100644 --- a/lib/pleroma/release_tasks.ex +++ b/lib/pleroma/release_tasks.ex @@ -35,11 +35,11 @@ defp mix_task(task, args) do end end - defp task_match?(module_path, task) do + defp task_match?(["Mix", "Tasks", "Pleroma" | module_path], task) do module_path |> Enum.join(".") |> String.downcase() - |> String.ends_with?(String.downcase(task)) + |> String.equivalent?(String.downcase(task)) end def migrate(args) do