1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -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=":" IFS=":"
for path in $PATH for path in $PATH
do do
if test -r "$path/$file"; then if test -f "$path/$file"; then
echo "$path/$file" echo "$path/$file"
return return
fi fi