diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-12-17 13:06:48 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-12-17 13:06:48 +0000 |
commit | ba2edb982408004f47a7d07897aac95083862cff (patch) | |
tree | 17dcd9a49fa8b5a430afd08dfca987221dd1e713 | |
parent | add --list-profiles (diff) | |
download | gcc-config-ba2edb982408004f47a7d07897aac95083862cff.tar.gz gcc-config-ba2edb982408004f47a7d07897aac95083862cff.tar.bz2 gcc-config-ba2edb982408004f47a7d07897aac95083862cff.zip |
small fixesv1.2.4
-rwxr-xr-x | gcc-config | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -2,7 +2,7 @@ # Copyright 1999-2002 Gentoo Foundation # Distributed under the terms of the GNU General Public License # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.4,v 1.1 2002/12/16 18:45:53 azarah Exp $ +# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.4,v 1.2 2002/12/17 13:06:48 azarah Exp $ source /etc/init.d/functions.sh || { @@ -132,9 +132,15 @@ switch_profile() { if [ -z "${MY_LDPATH}" ] then - MY_LDPATH="${LDPATH}" + if [ -d ${LDPATH} ] + then + MY_LDPATH="${LDPATH}" + fi else - MY_LDPATH="${MY_LDPATH}:${LDPATH}" + if [ -d ${LDPATH} ] + then + MY_LDPATH="${MY_LDPATH}:${LDPATH}" + fi fi fi done |