diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2014-06-18 15:41:06 +0200 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2014-06-18 15:41:06 +0200 |
commit | fdee523452955d5423dbe22a10ccfc60221dd99a (patch) | |
tree | ae0d0bf70c690320fd0a4ff65c15340cc063caeb | |
parent | ade380a7aa1241fd7a2e16ee0c44fe268b42ff9a (diff) |
buildconf: do not search tools in current directory.
-rwxr-xr-x | buildconf | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,6 +32,7 @@ die(){ #-------------------------------------------------------------------------- # findtool works as 'which' but we use a different name to make it more # obvious we aren't using 'which'! ;-) +# Unlike 'which' does, the current directory is ignored. # findtool(){ file="$1" @@ -49,7 +50,7 @@ findtool(){ do IFS=$old_IFS # 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" return fi |