Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/install-qa-check.d/
Date: Thu, 02 Jun 2016 06:12:52
Message-Id: 1464847840.e7fb57859b18a1c5ef3fb22d71ac8a6bf74e5375.zmedico@gentoo
1 commit: e7fb57859b18a1c5ef3fb22d71ac8a6bf74e5375
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 2 06:10:40 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 06:10:40 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e7fb5785
7
8 install-qa-check.d/60openrc: validate bash for openrc-run shebangs
9
10 bin/install-qa-check.d/60openrc | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/bin/install-qa-check.d/60openrc b/bin/install-qa-check.d/60openrc
14 index 28e3bbf..0ab27f6 100644
15 --- a/bin/install-qa-check.d/60openrc
16 +++ b/bin/install-qa-check.d/60openrc
17 @@ -11,7 +11,7 @@ openrc_check() {
18 [[ ! -e ${i} ]] && continue
19 if [[ ${d} == /etc/init.d && ${i} != *.sh ]] ; then
20 # skip non-shell-script for bug #451386
21 - [[ $(head -n1 "${i}") =~ ^#!.*[[:space:]/](runscript|sh)$ ]] || continue
22 + [[ $(head -n1 "${i}") =~ ^#!.*[[:space:]/](openrc-run|runscript|sh)$ ]] || continue
23 if [[ $(head -n1 "${i}") == '#!/sbin/runscript' ]] ; then
24 eqawarn "QA Notice: #!/sbin/runscript is deprecated, use #!/sbin/openrc-run instead:"
25 while read -r ;