mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 10:36:55 -07:00
Fix quoting in running(). Fixes #227
This commit is contained in:
parent
815e53122b
commit
a6953f1217
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ running() {
|
|||
if [ ${RET} -eq 0 ]; then
|
||||
# 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'"' '/<MediaContainer size="[0-9]+">/ {count+=$2}; /<Player[^>]* state="paused"/ {count--}; END {print count}' <<< ${DATA})"
|
||||
local mediacount="$(awk -F'"' '/<MediaContainer size="[0-9]+">/ {count+=$2}; /<Player[^>]* state="paused"/ {count--}; END {print count}' <<< "${DATA}")"
|
||||
[ $mediacount -gt 0 ] && return 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue