Skip to content

A platform for community discussion. Free, open, simple.

FIX: discourse remap: fix output to avoid UX issue (#24905)

Leonardo Mosquera5417c4fac0d7
diff --git a/script/discourse b/script/discourse
index 4127d666112..12eed4b5e8f 100755
--- a/script/discourse
+++ b/script/discourse
@@ -42,8 +42,8 @@ class DiscourseCLI < Thor
else
puts "Rewriting all occurrences of #{from} to #{to}"
end
- puts "THIS TASK WILL REWRITE DATA, ARE YOU SURE (type YES)"
puts "WILL RUN ON ALL #{RailsMultisite::ConnectionManagement.all_dbs.length} DBS" if options[:global]
+ puts "THIS TASK WILL REWRITE DATA, ARE YOU SURE (type YES)"
text = STDIN.gets
if text.strip.upcase != "YES"
puts "aborting."