Skip to content

Commit 07dac7f

Browse files
committed
build: rely on bash from 'PATH'
/bin/bash isn't guaranteed to exist on any platform (unlike /bin/sh), here we switch to relying on bash from the path instead, this lets us build on systems like NixOS without breaking other systems. Signed-off-by: Danielle Lancashire <dani@builds.terrible.systems>
1 parent a4bcbd6 commit 07dac7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ fn get_os_process() -> String {
129129
if cfg!(target_os = "windows") {
130130
String::from("powershell.exe")
131131
} else {
132-
String::from("/bin/bash")
132+
String::from("bash")
133133
}
134134
}

0 commit comments

Comments
 (0)