From 76c88f965f46ade5e184a79ffdf203cd114dccc1 Mon Sep 17 00:00:00 2001 From: zelda Date: Sun, 17 Sep 2023 14:18:54 +0200 Subject: [PATCH] Fix display of disk list, display vfat in green --- Cargo.lock | 2 +- src/disk.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b8c903f..60047d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -886,7 +886,7 @@ dependencies = [ [[package]] name = "psa-update" -version = "1.0.3" +version = "1.0.4" dependencies = [ "anyhow", "clap", diff --git a/src/disk.rs b/src/disk.rs index 9fcd476..3868037 100644 --- a/src/disk.rs +++ b/src/disk.rs @@ -28,7 +28,9 @@ pub fn print_disks(sys: &System) { red.apply_to("No") }; let file_system_str = str::from_utf8(disk.file_system()).unwrap(); - let file_system = if file_system_str.eq_ignore_ascii_case("FAT32") { + let file_system = if file_system_str.eq_ignore_ascii_case("vfat") + || file_system_str.eq_ignore_ascii_case("fat32") + { green.apply_to(file_system_str) } else { red.apply_to(file_system_str)