New in ShellCheck 0.9.0:
SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
Also:
SC2086 (info): Double quote to prevent globbing and word splitting.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
done
}
+# shellcheck disable=SC2317
+# Called indirectly via check_thresholds()
dump_memory_info()
{
get_proc "meminfo"
service_reconfigure ()
{
- service $service_name restart
+ # shellcheck disable=SC2317
+ # Called indirectly via ctdb_service_reconfigure()
+ service "$service_name" restart
}
load_script_options
service_reconfigure ()
{
# Restart lock manager, notify clients
+ # shellcheck disable=SC2317
+ # Called indirectly via check_thresholds()
if [ -x "${CTDB_BASE}/statd-callout" ] ; then
"${CTDB_BASE}/statd-callout" notify &
fi >/dev/null 2>&1