Skip to content

Commit 8334d5e

Browse files
committed
git-gui: prefer shell at "/bin/sh" with Meson
Meson detects the path of the target shell via `find_program("sh")`, which essentially does a lookup via `PATH`. We know that almost all systems have "/bin/sh" available though, which makes it the superior choice as a default value. Adapt `find_program()` to prefer "/bin/sh" over any other "sh" executable. Signed-off-by: Patrick Steinhardt <ps@pks.im>
1 parent 31d235c commit 8334d5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project('git-gui',
44

55
fs = import('fs')
66

7-
shell = find_program('sh')
7+
shell = find_program('/bin/sh', 'sh')
88
tclsh = find_program('tclsh')
99
wish = find_program('wish')
1010

0 commit comments

Comments
 (0)