mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-10-20 21:21:57 +00:00
Fix the grub2 mode regression introduced in 1.1.18 (#3772)
This commit is contained in:
@@ -149,6 +149,10 @@ grub_env_get (const char *name)
|
||||
if (var->read_hook)
|
||||
return var->read_hook (var, var->value);
|
||||
|
||||
/* theme var hook will cause them return '' after unset */
|
||||
if (var->value && var->value[0] == 0 && grub_strcmp(name, "theme") == 0)
|
||||
return 0;
|
||||
|
||||
return var->value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user