summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2016-11-19 21:48:49 +0100
committerThomas Deutschmann <whissi@gentoo.org>2016-11-19 21:49:15 +0100
commit9dcd5b2da7816a3c5431bddd28a926f135a85fe2 (patch)
tree409ff83508e92fa14ae52cb34309741db6b9a68c /sys-process
parentapp-emulation/rkt: adjust qemu deps for bug 600042 (diff)
downloadgentoo-9dcd5b2da7816a3c5431bddd28a926f135a85fe2.tar.gz
gentoo-9dcd5b2da7816a3c5431bddd28a926f135a85fe2.tar.bz2
gentoo-9dcd5b2da7816a3c5431bddd28a926f135a85fe2.zip
sys-process/fcron: runscript: Make shellcheck happy
Further POSIX improvements. Package-Manager: portage-2.3.2
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/fcron/files/fcron.init.46
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-process/fcron/files/fcron.init.4 b/sys-process/fcron/files/fcron.init.4
index 25fafc16ec25..9b7765fbfd69 100644
--- a/sys-process/fcron/files/fcron.init.4
+++ b/sys-process/fcron/files/fcron.init.4
@@ -5,7 +5,7 @@
FCRON_INSTANCE="${SVCNAME##*.}"
-if [ -n "${FCRON_INSTANCE}" -a "${SVCNAME}" != "fcron" ]; then
+if [ -n "${FCRON_INSTANCE}" ] && [ "${SVCNAME}" != "fcron" ]; then
FCRON_CONFIGFILE="/etc/fcron/fcron.${FCRON_INSTANCE}.conf"
else
FCRON_CONFIGFILE="/etc/fcron/fcron.conf"
@@ -17,10 +17,10 @@ getconfig() {
local value=
if service_started; then
- value="$(service_get_value ${key})"
+ value="$(service_get_value "${key}")"
fi
- if [ -z "${value}" -a -r "${FCRON_CONFIGFILE}" ]; then
+ if [ -z "${value}" ] && [ -r "${FCRON_CONFIGFILE}" ]; then
value="$(sed -n -e 's:^'"${key}"'[ \t]*=[ \t]*::p' "${FCRON_CONFIGFILE}")"
fi