make resolution of tasks less flimsy
This commit is contained in:
parent
a07e282c4e
commit
49cca76b52
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue