commit: 9dcd5b2da7816a3c5431bddd28a926f135a85fe2
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 19 20:48:49 2016 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Nov 19 20:49:15 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dcd5b2d
sys-process/fcron: runscript: Make shellcheck happy
Further POSIX improvements.
Package-Manager: portage-2.3.2
sys-process/fcron/files/fcron.init.4 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys-process/fcron/files/fcron.init.4
b/sys-process/fcron/files/fcron.init.4
index 25fafc1..9b7765f 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