Skip to content

Commit

Permalink
Fix display of disk list, display vfat in green
Browse files Browse the repository at this point in the history
  • Loading branch information
zeld committed Sep 17, 2023
1 parent 21325ba commit 76c88f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 76c88f9

Please sign in to comment.