1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

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

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