* QA Notice: shell script appears to use non-POSIX feature(s): * possible bashism in /etc/init.d/collectd line 24 (alternative test command ([[ foo ]] should be [ foo ])): * if [[ $(sed '/^$\|^#/d' ${COLLECTD_CFGFILE} | grep -c 'LoadPlugin\w\+oracle') != 0 ]] ; then * possible bashism in /etc/init.d/collectd line 25 (alternative test command ([[ foo ]] should be [ foo ])): * if [[ -e /etc/env.d/50oracle-instantclient-basic ]] ; then * possible bashism in /etc/init.d/collectd line 26 (should be '.', not 'source'): * source /etc/env.d/50oracle-instantclient-basic
Created attachment 356834 [details, diff] init-nobashisms.diff Not sure if this warrants a -r1 of the init script, but attached is a diff that fixes these QA warnings. Haven't tested on !bash (last time I went busybox sh a lot of things started breaking), but hopefully this is it. Out of curiosity, how do you run that QA check? Seems to be part of misc-functions.sh, but can't find it.
+ 08 Sep 2013; Markos Chandras <hwoarang@gentoo.org> files/collectd.initd: + Avoid bashisms in init script. Bug #482070 thanks to Johan Bergström + <bugs@bergstroem.nu> +