Fix syntax
authorFabian Groffen <grobian@gentoo.org>
Thu, 24 Sep 2009 18:34:43 +0000 (18:34 -0000)
committerFabian Groffen <grobian@gentoo.org>
Thu, 24 Sep 2009 18:34:43 +0000 (18:34 -0000)
svn path=/main/branches/prefix/; revision=14411

bin/misc-functions.sh

index ff6070fed14d681f28cd4d4b8a6e838ad2a8877c..2f016d559e8822bc41c090b8c34628454be0eb8f 100644 (file)
@@ -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:"