修复平台名称大小写问题,确保Linux和macOS的分区监控逻辑正确
Some checks failed
Compile / build (x64, windows-latest) (push) Failing after 21s
Compile / build (x64, ubuntu-latest) (push) Failing after 2m54s

This commit is contained in:
远野千束(神羽) 2024-12-09 00:30:34 +08:00
parent 48ac46bbb3
commit e74324e21b

View File

@ -214,15 +214,16 @@ class Client:
if ( if (
( (
platform.system() == "linux" platform.system() == "Linux"
and ( and (
part.mountpoint.startswith( part.mountpoint.startswith(
excluded_partition_prefix excluded_partition_prefix
) )
) )
) )
or ( or
platform.system() == "darwin" (
platform.system() == "Darwin"
and not part.mountpoint.startswith( and not part.mountpoint.startswith(
include_partition_prefix_mac include_partition_prefix_mac
) )