make sure the found tool is a regular file (and not a dir or something)
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Jun 2005 22:43:13 +0000 (22:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Jun 2005 22:43:13 +0000 (22:43 +0000)
buildconf

index 709434f..d7efd57 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -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