Utils::Cp: Fix Linux tests

This commit is contained in:
Daiki Mizukami 2024-06-06 21:45:03 +09:00
parent b4dcb94ad6
commit a5500aa7f2
No known key found for this signature in database
GPG Key ID: 10478E598B944AA2

View File

@ -48,7 +48,7 @@ module Utils
# The `cp` command on older macOS versions also had the `-c` option, but before Sonoma, the
# command would fail if the `clonefile` syscall isn't applicable (the underlying filesystem
# doesn't support the feature or the source and the target are on different filesystems).
if MacOS.version >= :sonoma
if OS.mac? && MacOS.version >= :sonoma
MACOS_FLAGS
else
GENERIC_FLAGS