From eb39f4906a33c53ba4af8070d4c449d40eb2026a Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 12 Sep 2012 20:24:24 +0200 Subject: [PATCH] install_qa_check_prefix: auto fix shebang of init-scripts Always consider scripts in ${EPREFIX}/etc/init.d as must-fixable. --- bin/misc-functions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index d46ab060b..8c6a12683 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -949,8 +949,9 @@ install_qa_check_prefix() { fi continue fi - # unprefixed shebang, is the script directly in $PATH? - if [[ ":${PATH}:" == *":${fp}:"* ]] ; then + # unprefixed shebang, is the script directly in $PATH or an init + # script? + if [[ ":${PATH}:${EPREFIX}/etc/init.d:" == *":${fp}:"* ]] ; then if [[ -e ${EROOT}${line[0]} || -e ${ED}${line[0]} ]] ; then # is it unprefixed, but we can just fix it because a # prefixed variant exists -- 2.26.2