mirror of https://github.com/sharkdp/fd.git
Merge f875ea9a52
into bc6782624e
This commit is contained in:
commit
d942c15a8c
|
@ -128,13 +128,11 @@ pub fn strip_current_dir(path: &Path) -> &Path {
|
||||||
pub fn default_path_separator() -> Option<String> {
|
pub fn default_path_separator() -> Option<String> {
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
let msystem = env::var("MSYSTEM").ok()?;
|
let msystem = env::var("MSYSTEM").ok()?;
|
||||||
match msystem.as_str() {
|
if !msystem.as_str().is_empty() {
|
||||||
"MINGW64" | "MINGW32" | "MSYS" => Some("/".to_owned()),
|
return Some("/".to_owned());
|
||||||
_ => None,
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
}
|
||||||
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
Loading…
Reference in New Issue