MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / windows_bash_path

Function windows_bash_path

xtask/src/main.rs:9806–9817  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9804
9805#[cfg(windows)]
9806fn 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))]
9820fn windows_bash_path() -> &'static str {

Callers 1

command_for_hostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected