From 49cca76b5200ad6a772ad14197766e1ab37dc6a2 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Tue, 16 Aug 2022 23:56:30 +0100 Subject: [PATCH] make resolution of tasks less flimsy --- lib/pleroma/release_tasks.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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