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 | 0ec89b58d0e6c7eb83c0b536c957f657db478032 (patch) | |
tree | b6b5aa830c528192e1730f14f939a4734d4c9620 /eclass | |
parent | Bumping to 1.24 because it's outdated. (Manifest recommit) (diff) | |
download | gentoo-2-0ec89b58d0e6c7eb83c0b536c957f657db478032.tar.gz gentoo-2-0ec89b58d0e6c7eb83c0b536c957f657db478032.tar.bz2 gentoo-2-0ec89b58d0e6c7eb83c0b536c957f657db478032.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} |