shell_yes?/1 was not showing the correct message and always defaults to yes which is dangerous
This commit is contained in:
parent
6adad96c79
commit
50aadc3d5c
2 changed files with 1 additions and 7 deletions
|
|
@ -98,12 +98,6 @@ defmodule Mix.Pleroma do
|
|||
end
|
||||
end
|
||||
|
||||
def shell_yes?(message) do
|
||||
if mix_shell?(),
|
||||
do: Mix.shell().yes?("Continue?"),
|
||||
else: shell_prompt(message, "Continue?") in ~w(Yn Y y)
|
||||
end
|
||||
|
||||
def shell_info(message) do
|
||||
if mix_shell?(),
|
||||
do: Mix.shell().info(message),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue