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
|
|
@ -60,7 +60,7 @@ defmodule Mix.Tasks.Pleroma.User do
|
|||
- admin: #{if(admin?, do: "true", else: "false")}
|
||||
""")
|
||||
|
||||
proceed? = assume_yes? or shell_yes?("Continue?")
|
||||
proceed? = assume_yes? or shell_prompt("Continue?", "n") in ~w(Yn Y y)
|
||||
|
||||
if proceed? do
|
||||
start_pleroma()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue