()
| 9804 | |
| 9805 | #[cfg(windows)] |
| 9806 | fn windows_bash_path() -> PathBuf { |
| 9807 | for path in [ |
| 9808 | r"C:\Program Files\Git\bin\bash.exe", |
| 9809 | r"C:\Program Files\Git\usr\bin\bash.exe", |
| 9810 | ] { |
| 9811 | let path = PathBuf::from(path); |
| 9812 | if path.is_file() { |
| 9813 | return path; |
| 9814 | } |
| 9815 | } |
| 9816 | PathBuf::from("bash") |
| 9817 | } |
| 9818 | |
| 9819 | #[cfg(not(windows))] |
| 9820 | fn windows_bash_path() -> &'static str { |