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
This commit is contained in:
Kim Alvefur 2025-01-23 22:32:44 +01:00
parent c8134dd9a9
commit edfe2fe98c

View file

@ -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