slightly easier test to read for DISTDR/unpack check
authorMike Frysinger <vapier@gentoo.org>
Tue, 9 May 2006 02:08:20 +0000 (02:08 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 May 2006 02:08:20 +0000 (02:08 -0000)
svn path=/main/trunk/; revision=3335

bin/ebuild.sh

index b3f34d6ea0e8ca959d5751006a4ed57dd4f6e664..5f7cd431680ecab27f5da47debefaaab3c517a86 100755 (executable)
@@ -365,7 +365,7 @@ unpack() {
                else
                        srcdir="${DISTDIR}/"
                fi
-               [ "${x}" != "${x/${DISTDIR}}" ] && \
+               [[ ${x} == ${DISTDIR}* ]] && \
                        die "Arguments to unpack() should not begin with \${DISTDIR}."
                [ ! -s "${srcdir}${x}" ] && die "$myfail"