make resolution of tasks less flimsy
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/pr/woodpecker Pipeline is pending

This commit is contained in:
FloatingGhost 2022-08-16 23:56:30 +01:00
parent a07e282c4e
commit 49cca76b52

View file

@ -35,11 +35,11 @@ defp mix_task(task, args) do
end end
end end
defp task_match?(module_path, task) do defp task_match?(["Mix", "Tasks", "Pleroma" | module_path], task) do
module_path module_path
|> Enum.join(".") |> Enum.join(".")
|> String.downcase() |> String.downcase()
|> String.ends_with?(String.downcase(task)) |> String.equivalent?(String.downcase(task))
end end
def migrate(args) do def migrate(args) do