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

mix mode

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
chapril
Thomas Citharel 7 months ago
parent 7a6a013d93
commit 5bc9245dce
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
  1. 2
      lib/mix/tasks/mobilizon/common.ex

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

Loading…
Cancel
Save