diff --git a/plexupdate-core b/plexupdate-core index 7d4b122..70310cc 100755 --- a/plexupdate-core +++ b/plexupdate-core @@ -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'"' '// {count+=$2}; /]* state="paused"/ {count--}; END {print count}' <<< ${DATA})" + local mediacount="$(awk -F'"' '// {count+=$2}; /]* state="paused"/ {count--}; END {print count}' <<< "${DATA}")" [ $mediacount -gt 0 ] && return 0 fi