diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-31 03:18:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-31 03:18:42 +0000 |
commit | d32b6fd4fa7b369532fd5012ccdefd97c3ea78b6 (patch) | |
tree | c63d8282dd21a1c2a0f8c2cc6ed6cb2a3c48850e /eclass | |
parent | Bumping to 1.24 because it's outdated. (diff) | |
download | historical-d32b6fd4fa7b369532fd5012ccdefd97c3ea78b6.tar.gz historical-d32b6fd4fa7b369532fd5012ccdefd97c3ea78b6.tar.bz2 historical-d32b6fd4fa7b369532fd5012ccdefd97c3ea78b6.zip |
dont kill $prog unless $search is valid
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 2258bf95224b..4e54e074ce28 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.17 2004/12/30 21:27:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.18 2004/12/31 03:18:42 vapier Exp $ # # Author: Toolchain Ninjas <ninjas@gentoo.org> # @@ -25,7 +25,7 @@ tc-getPROG() { if [[ -n ${CHOST} ]] ; then local search=$(type -p "${CHOST}-${prog}") - prog=${search##*/} + [[ -n ${search} ]] && prog=${search##*/} fi export ${var}=${prog} |