make sure we avoid double slashes
authorFabian Groffen <grobian@gentoo.org>
Thu, 2 Sep 2010 19:23:05 +0000 (21:23 +0200)
committerFabian Groffen <grobian@gentoo.org>
Thu, 2 Sep 2010 19:23:05 +0000 (21:23 +0200)
Cygwin is kind of allergic to them, as on windows two starting slashes
typically mean somethinglike network share/access.  Bug #334271

bin/misc-functions.sh

index 73da1696a90142e8f907904132964a53d71719cd..bb936e88f3cfae3bb97a823d4468993e8e454f8f 100644 (file)
@@ -679,7 +679,7 @@ install_qa_check_prefix() {
                fi
                # does the shebang start with ${EPREFIX}, and does it exist?
                if [[ ${line[0]} == ${EPREFIX}/* ]] ; then
-                       if [[ ! -e ${ROOT}${line[0]} && ! -e ${D}${line[0]} ]] ; then
+                       if [[ ! -e ${ROOT%/}${line[0]} && ! -e ${D%/}${line[0]} ]] ; then
                                # hmm, refers explicitly to $EPREFIX, but doesn't exist,
                                # if it's in PATH that's wrong in any case
                                if [[ ":${PATH}:" == *":${fp}:"* ]] ; then