From edfe2fe98cb982bbf5391215b5050d9f67bababa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 23 Jan 2025 22:32:44 +0100 Subject: mod_storage_sql: Don't treat Enter or Ctrl-C as yes in upgrade command It seems to imply that No is the default, so it shouldn't continue doing the Yes action unless you actually press Y --- plugins/mod_storage_sql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_storage_sql.lua') diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 605904ab..fa0588b2 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -1025,7 +1025,7 @@ function module.command(arg) end print(""); print("Ensure you have working backups of the above databases before continuing! "); - if not hi.show_yesno("Continue with the database upgrade? [yN]") then + if false == hi.show_yesno("Continue with the database upgrade? [yN]") then print("Ok, no upgrade. But you do have backups, don't you? ...don't you?? :-)"); return; end -- cgit v1.2.3