mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
run: remove residual use of 'which' command
This is a follow-up commit for "Remove dependency from 'which' utility". Thanks to John Karcher for reporting. Fixes #4319
This commit is contained in:
parent
e4ee30abf1
commit
aaf9e992da
@ -547,9 +547,10 @@ proc have_installed {program} {
|
|||||||
# \return absolute path of command if found, or exists if not
|
# \return absolute path of command if found, or exists if not
|
||||||
#
|
#
|
||||||
proc installed_command {command} {
|
proc installed_command {command} {
|
||||||
if { [catch {set path [exec which $command]}] == 0} {
|
|
||||||
return $path
|
set path [auto_execok $command]
|
||||||
}
|
if {$path != ""} {
|
||||||
|
return $path }
|
||||||
|
|
||||||
set dir { /sbin /usr/sbin /usr/local/bin }
|
set dir { /sbin /usr/sbin /usr/local/bin }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user