From 368291d415ac5e43e4fbf4c1ef51e9d0041d5c31 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 24 Sep 2009 18:34:43 +0000 Subject: [PATCH] Fix syntax svn path=/main/branches/prefix/; revision=14411 --- bin/misc-functions.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index ff6070fed..2f016d559 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -504,9 +504,13 @@ install_qa_check() { fi # all else is an error if the found script is in $PATH local fp=${fn#${D}} ; fp=${fp%/*} - [[ ":${PATH}:" == *":${fp}:"* || hasq stricter ${FEATURES} ]] \ - && echo "${fn#${D}}:${line[0]}" >> "${T}"/non-prefix-shebangs-errs \ - || eqawarn "invalid shebang in ${fn#${D}}: ${line[0]}" + if [[ ":${PATH}:" == *":${fp}:"* ]] || hasq stricter ${FEATURES} ; + then + echo "${fn#${D}}:${line[0]}" \ + >> "${T}"/non-prefix-shebangs-errs + else + eqawarn "invalid shebang in ${fn#${D}}: ${line[0]}" + fi done if [[ -e "${T}"/non-prefix-shebangs-errs ]] ; then eqawarn "QA Notice: the following files use invalid (possible non-prefixed) shebangs:" -- 2.26.2