Skip to content

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

DEV: Be more lenient in CLI confirmation (#16290)

David Taylord81359246a9e
diff --git a/script/discourse b/script/discourse
index 03c40195406..4127d666112 100755
--- a/script/discourse
+++ b/script/discourse
@@ -45,7 +45,7 @@ class DiscourseCLI < Thor
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]
text = STDIN.gets
- if text.strip != "YES"
+ if text.strip.upcase != "YES"
puts "aborting."
exit 1
end