From 6f5b057e22449749ba9992d3c54963b011e215f3 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sat, 14 Apr 2018 18:23:24 -0700 Subject: [PATCH] Add verbose output for in-use check --- plexupdate-core | 1 + 1 file changed, 1 insertion(+) diff --git a/plexupdate-core b/plexupdate-core index 4ef4cf4..f49aa26 100755 --- a/plexupdate-core +++ b/plexupdate-core @@ -198,6 +198,7 @@ running() { # Get a total count of active media (MediaContainer size), then deduct one for every paused stream. # If all streams are paused, we consider the server to not be active. local mediacount="$(awk -F'"' '// {count+=$2}; /]* state="paused"/ {count--}; END {print count}' <<< "${DATA}")" + [ "$VERBOSE" = "yes" ] && printf 'Activity check reports a count of %b, based on return data of:\n%s\n\n' "${DATA}" >&2 [ $mediacount -gt 0 ] && return 0 fi