single scop
parent
11df0f41fa
commit
c290afca3a
13
src/main.rs
13
src/main.rs
|
@ -37,13 +37,14 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||||
let boot_folder = unsafe { boot_folder.unwrap_unchecked() };
|
let boot_folder = unsafe { boot_folder.unwrap_unchecked() };
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
if args.boot_directory.is_none() {
|
let boot_folder = {
|
||||||
eprintln!("You must supply a boot-directory on windows; see --help");
|
if args.boot_directory.is_none() {
|
||||||
exit(1);
|
eprintln!("You must supply a boot-directory on windows; see --help");
|
||||||
}
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
unsafe { args.boot_directory.unwrap_unchecked() }
|
||||||
let boot_folder = unsafe { args.boot_directory.unwrap_unchecked() };
|
};
|
||||||
|
|
||||||
let grub_env = boot_folder.join("grub/grubenv");
|
let grub_env = boot_folder.join("grub/grubenv");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue