single scop

main
Zynh0722 2024-05-15 05:17:54 -07:00
parent 11df0f41fa
commit c290afca3a
1 changed files with 7 additions and 6 deletions

View File

@ -37,13 +37,14 @@ fn main() -> Result<(), Box<dyn Error>> {
let boot_folder = unsafe { boot_folder.unwrap_unchecked() };
#[cfg(windows)]
let boot_folder = {
if args.boot_directory.is_none() {
eprintln!("You must supply a boot-directory on windows; see --help");
exit(1);
}
#[cfg(windows)]
let boot_folder = unsafe { args.boot_directory.unwrap_unchecked() };
unsafe { args.boot_directory.unwrap_unchecked() }
};
let grub_env = boot_folder.join("grub/grubenv");