Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment