aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools.tcl
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-05-23 17:04:27 -0400
committerTaylor Blau <me@ttaylorr.com>2025-05-23 17:04:27 -0400
commitafca9a4fb4e3c8acbc464bca69cde5c7397c25e1 (patch)
tree80b620507f14e2c9887879ca0dd152ee39e8dd8e /lib/tools.tcl
parent44e3935d53e3c0b00ff35bea4fcf8e1731ee4f9b (diff)
parenta1ccd2512072cf52835050f4c97a4fba9f0ec8f9 (diff)
downloadgit-afca9a4fb4e3c8acbc464bca69cde5c7397c25e1.tar.gz
Merge branch 'ml/replace-auto-execok' into js/fix-open-exec
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'lib/tools.tcl')
-rw-r--r--lib/tools.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tools.tcl b/lib/tools.tcl
index 142ffceedd..48fddfd814 100644
--- a/lib/tools.tcl
+++ b/lib/tools.tcl
@@ -110,14 +110,14 @@ proc tools_exec {fullname} {
set cmdline $repo_config(guitool.$fullname.cmd)
if {[is_config_true "guitool.$fullname.noconsole"]} {
- tools_run_silent [list sh -c $cmdline] \
+ tools_run_silent [list [shellpath] -c $cmdline] \
[list tools_complete $fullname {}]
} else {
regsub {/} $fullname { / } title
set w [console::new \
[mc "Tool: %s" $title] \
[mc "Running: %s" $cmdline]]
- console::exec $w [list sh -c $cmdline] \
+ console::exec $w [list [shellpath] -c $cmdline] \
[list tools_complete $fullname $w]
}