Commit 7223c1b6 authored by rinpatch's avatar rinpatch

Use if available

parent d7ec0898
......@@ -37,7 +37,9 @@ def shell_prompt(prompt, defval \\ nil, defname \\ nil) do
def shell_yes?(message) do
shell_prompt(message, "Yn") in ~w(Yn Y y)
if mix_shell?(),
else: shell_prompt(message, "Continue?") in ~w(Yn Y y)
def shell_info(message) do
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment