1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Fix multiple shellcheck issues

This commit is contained in:
Lars Kruse 2019-08-13 03:59:54 +02:00
parent 5b1099fb83
commit 7fed3b9765
18 changed files with 59 additions and 50 deletions

View file

@ -70,7 +70,7 @@ HOSTPORT=${0##*ssl-certificate-expiry_}
CACHEFILE="${MUNIN_PLUGSTATE}/$(basename "${0}").cache"
if [ "${HOSTPORT}" != "${0}" ] \
&& [ ! -z "${HOSTPORT}" ]; then
&& [ -n "${HOSTPORT}" ]; then
services="${HOSTPORT}"
fi

View file

@ -84,4 +84,4 @@ cert=$(echo "" | openssl s_client -CApath /etc/ssl/certs -servername "${SITE}" -
days_left=$(echo "$cert" | parse_valid_days_from_certificate)
[ -n "$days_left" ] || days_left="U"
printf "expire.value %s\n" "$days_left"
printf 'expire.value %s\n' "$days_left"