make sure the found tool is a regular file (and not a dir or something)

This commit is contained in:
Daniel Stenberg 2005-06-09 22:43:13 +00:00
parent f21bc46e82
commit a214af0830
1 changed files with 1 additions and 1 deletions

View File

@ -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