Make sure prompt show the correct message and not just "Continue?" in

mix mode

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-05-09 18:27:05 +02:00
parent 7a6a013d93
commit 5bc9245dce
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -54,7 +54,7 @@ defmodule Mix.Tasks.Mobilizon.Common do
@spec shell_yes?(String.t()) :: boolean() @spec shell_yes?(String.t()) :: boolean()
def shell_yes?(message) do def shell_yes?(message) do
if mix_shell?(), if mix_shell?(),
do: Mix.shell().yes?("Continue?"), do: Mix.shell().yes?(message),
else: shell_prompt(message, "Continue?") in ~w(Yn Y y) else: shell_prompt(message, "Continue?") in ~w(Yn Y y)
end end