From e4080cff5669904816ee310a9f0bb1196e7569b1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 9 May 2006 02:08:20 +0000 Subject: slightly easier test to read for DISTDR/unpack check svn path=/main/trunk/; revision=3335 --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index b3f34d6ea..5f7cd4316 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -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" -- cgit v1.2.3-1-g7c22