aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-02-10 13:45:33 +0100
committerPatrick Steinhardt <ps@pks.im>2026-02-17 06:58:11 +0100
commit8334d5e459de0386cf7b5b87cec136d62c14c3ad (patch)
tree795d9eba2935764a7fd232f9222ec777c24ccf0f
parent31d235c4c72666dec71a104d3bcd37cc7bd71ec5 (diff)
downloadgit-8334d5e459de0386cf7b5b87cec136d62c14c3ad.tar.xz
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>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 4a60465753..a2156f01e3 100644
--- a/meson.build
+++ b/meson.build
@@ -4,7 +4,7 @@ project('git-gui',
fs = import('fs')
-shell = find_program('sh')
+shell = find_program('/bin/sh', 'sh')
tclsh = find_program('tclsh')
wish = find_program('wish')