projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'preload-changes' into 'develop'
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
common.ex
diff --git
a/lib/mix/tasks/pleroma/common.ex
b/lib/mix/tasks/pleroma/common.ex
index 0e03a78728f5bc6e267d85054632a9533d9296be..7d50605aff77f901f2138b5f2110c64968448f50 100644
(file)
--- a/
lib/mix/tasks/pleroma/common.ex
+++ b/
lib/mix/tasks/pleroma/common.ex
@@
-37,7
+37,9
@@
defmodule Mix.Tasks.Pleroma.Common do
end
def shell_yes?(message) do
- shell_prompt(message, "Yn") in ~w(Yn Y y)
+ if mix_shell?(),
+ do: Mix.shell().yes?("Continue?"),
+ else: shell_prompt(message, "Continue?") in ~w(Yn Y y)
end
def shell_info(message) do