mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 01:40:34 +01:00
Also add NetBSD and OpenBSD
This commit is contained in:
parent
4b5e8941a7
commit
04bcd546b2
1 changed files with 3 additions and 2 deletions
|
@ -175,7 +175,7 @@ fn run() -> Result<ExitCode> {
|
|||
};
|
||||
|
||||
let cmd: Vec<&str> = if cfg!(unix) {
|
||||
if !cfg!(any(target_os = "macos", target_os = "dragonfly", target_os = "freebsd")) {
|
||||
if !cfg!(any(target_os = "macos", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd")) {
|
||||
// Assume ls is GNU ls
|
||||
gnu_ls("ls")
|
||||
} else {
|
||||
|
@ -200,7 +200,8 @@ fn run() -> Result<ExitCode> {
|
|||
"-d", // '--directory' is not available, but '-d' is
|
||||
];
|
||||
|
||||
if colored_output {
|
||||
if !cfg!(any(target_os = "netbsd", target_os = "openbsd")) && colored_output {
|
||||
// -G is not available in NetBSD's and OpenBSD's ls
|
||||
cmd.push("-G");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue