- use -n syntax like most of ebuild.sh
authorNed Ludd <solar@gentoo.org>
Sun, 25 Dec 2005 09:01:05 +0000 (09:01 -0000)
committerNed Ludd <solar@gentoo.org>
Sun, 25 Dec 2005 09:01:05 +0000 (09:01 -0000)
svn path=/main/trunk/; revision=2458

bin/ebuild.sh

index a6da7b2b47570afd1b5fd101800edc7eb2526b26..1efe6f88e146bc7d1f6abf92ad212f8d09fd4fcb 100755 (executable)
@@ -912,7 +912,7 @@ dyn_compile() {
                CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \
                FEATURES INHERITED IUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \
                LICENSE PDEPEND PF PKGUSE PROVIDE RDEPEND RESTRICT SLOT; do
-               [ "${!f}" != "" ] && echo "${!f}" > ${f}
+               [ -n "${!f}" ] && echo "${!f}" > ${f}
        done
        echo "${USE}"           > USE
        echo "${EAPI:-0}"       > EAPI