Commit a214af08 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent f21bc46e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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