We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae5da1 commit 27a378fCopy full SHA for 27a378f
src/tools/run-make-support/src/external_deps/cygpath.rs
@@ -27,12 +27,10 @@ pub fn get_windows_path<P: AsRef<Path>>(path: P) -> String {
27
cygpath.arg("-w");
28
cygpath.arg(path.as_ref());
29
let output = cygpath.run();
30
- if !output.status().success() {
31
- return path.as_ref().to_str().unwrap().into();
+ if output.status().success() {
+ // cygpath -w can attach a newline
32
+ return output.stdout_utf8().trim().to_string();
33
}
- // cygpath -w can attach a newline
34
- output.stdout_utf8().trim().to_string()
35
- } else {
36
- path.as_ref().to_str().unwrap().into()
37
+ path.as_ref().to_str().unwrap().into()
38
0 commit comments