From b95d011bc3e37c6acf24b63d15e82fc2fd274e96 Mon Sep 17 00:00:00 2001 From: axtlos Date: Sat, 23 Apr 2022 19:44:26 +0200 Subject: [PATCH] bugfixing :smiley: --- src/functions/partition.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions/partition.rs b/src/functions/partition.rs index 5f47379..1769ec5 100755 --- a/src/functions/partition.rs +++ b/src/functions/partition.rs @@ -147,11 +147,11 @@ pub fn fmt_mount(mountpoint: &String, filesystem: &String, blockdevice: &String) } pub fn partition(device: PathBuf, mode: PartitionMode, efi: bool, partitions: Vec) { - if !device.exists() { - crash(format!("The device {device:?} doesn't exist"), 1); - } match mode { PartitionMode::Auto => { + if !device.exists() { + crash(format!("The device {device:?} doesn't exist"), 1); + } log::debug!("automatically partitioning {device:?}"); if efi { partition_with_efi(&device);