mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:27:16 +03:00
make sure the found tool is a regular file (and not a dir or something)
This commit is contained in:
parent
f21bc46e82
commit
a214af0830
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ findtool(){
|
|||
IFS=":"
|
||||
for path in $PATH
|
||||
do
|
||||
if test -r "$path/$file"; then
|
||||
if test -f "$path/$file"; then
|
||||
echo "$path/$file"
|
||||
return
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue