Diff

plugins/mod_storage_sql.lua @ 13634:7209769e88bc

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
author Kim Alvefur <zash@zash.se>
date Thu, 23 Jan 2025 22:32:44 +0100
parent 13633:6b84d11aa09b
child 13661:5a7f042fe05d
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Thu Jan 23 19:33:05 2025 +0100
+++ b/plugins/mod_storage_sql.lua	Thu Jan 23 22:32:44 2025 +0100
@@ -1025,7 +1025,7 @@
 		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