From 73f311e94c84cd840c61283fad1a8012b1fab221 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 2 Sep 2010 21:23:05 +0200 Subject: [PATCH] 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 --- bin/misc-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2