projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc94e2
)
Tweak init.d qa check for bug #451386.
author
Zac Medico
<zmedico@gentoo.org>
Sat, 12 Jan 2013 00:09:25 +0000
(16:09 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 12 Jan 2013 00:09:25 +0000
(16:09 -0800)
bin/misc-functions.sh
patch
|
blob
|
history
diff --git
a/bin/misc-functions.sh
b/bin/misc-functions.sh
index 6f84526014e8260b78a6056df60c0b026156538c..5fd0eab2c3b731211d87c93b77e239cb2d38d77f 100755
(executable)
--- a/
bin/misc-functions.sh
+++ b/
bin/misc-functions.sh
@@
-554,6
+554,10
@@
install_qa_check() {
[[ -L ${i} ]] && continue
# if empty conf.d/init.d dir exists (baselayout), then i will be "/etc/conf.d/*" and not exist
[[ ! -e ${i} ]] && continue
+ if [[ ${d} == /etc/init.d && ${i} != *.sh ]] ; then
+ # skip non-shell-script for bug #451386
+ [[ $(head -n1 "${i}") =~ ^#!.*[[:space:]/](runscript|sh)$ ]] || continue
+ fi
bash -n "${i}" || die "The init.d file has syntax errors: ${i}"
done
done