buildconf: do not search tools in current directory.
This commit is contained in:
parent
ade380a7aa
commit
fdee523452
@ -32,6 +32,7 @@ die(){
|
|||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# findtool works as 'which' but we use a different name to make it more
|
# findtool works as 'which' but we use a different name to make it more
|
||||||
# obvious we aren't using 'which'! ;-)
|
# obvious we aren't using 'which'! ;-)
|
||||||
|
# Unlike 'which' does, the current directory is ignored.
|
||||||
#
|
#
|
||||||
findtool(){
|
findtool(){
|
||||||
file="$1"
|
file="$1"
|
||||||
@ -49,7 +50,7 @@ findtool(){
|
|||||||
do
|
do
|
||||||
IFS=$old_IFS
|
IFS=$old_IFS
|
||||||
# echo "checks for $file in $path" >&2
|
# echo "checks for $file in $path" >&2
|
||||||
if test -f "$path/$file"; then
|
if test "$path" -a "$path" != '.' -a -f "$path/$file"; then
|
||||||
echo "$path/$file"
|
echo "$path/$file"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user