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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue