aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-10 19:55:26 -0500
committerMike Frysinger <vapier@gentoo.org>2015-11-10 19:55:26 -0500
commit97c7b4f967e2b43984ad948ad0d77e84a1a55016 (patch)
tree752281e669acb1bbf46248f93d78e6c404d5df24
parentrepos.conf: support sync-hooks-only-on-change attribute (bug 565172) (diff)
downloadportage-97c7b4f967e2b43984ad948ad0d77e84a1a55016.tar.gz
portage-97c7b4f967e2b43984ad948ad0d77e84a1a55016.tar.bz2
portage-97c7b4f967e2b43984ad948ad0d77e84a1a55016.zip
checkbashisms: also flag echo -e/-n usage
Since we don't require echo support the -e or -n flag, and we know some shells do not support them, make sure we flag them in our scripts too.
-rw-r--r--bin/install-qa-check.d/60openrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/install-qa-check.d/60openrc b/bin/install-qa-check.d/60openrc
index 9b7fc6d99..1e56b2f37 100644
--- a/bin/install-qa-check.d/60openrc
+++ b/bin/install-qa-check.d/60openrc
@@ -24,7 +24,7 @@ openrc_check() {
for i in "${ED}${d}"/* ; do
[[ -e ${i} ]] || continue
[[ -L ${i} ]] && continue
- f=$("${checkbashisms}" -f "${i}" 2>&1)
+ f=$("${checkbashisms}" -n -f "${i}" 2>&1)
[[ $? != 0 && -n ${f} ]] || continue
eqawarn "QA Notice: shell script appears to use non-POSIX feature(s):"
while read -r ;