From: Fabian Groffen Date: Thu, 24 Sep 2009 18:34:43 +0000 (-0000) Subject: Fix syntax X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=368291d415ac5e43e4fbf4c1ef51e9d0041d5c31;p=portage.git Fix syntax svn path=/main/branches/prefix/; revision=14411 --- 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:"