From: Fabian Groffen Date: Thu, 2 Sep 2010 19:23:05 +0000 (+0200) Subject: make sure we avoid double slashes X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=73f311e94c84cd840c61283fad1a8012b1fab221;p=portage.git make sure we avoid double slashes Cygwin is kind of allergic to them, as on windows two starting slashes typically mean somethinglike network share/access. Bug #334271 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 73da1696a..bb936e88f 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -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