forked from potsda.mn/mobilizon
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:
parent
7a6a013d93
commit
5bc9245dce
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue