From a6953f121703e44758265588914958750b35a241 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sat, 10 Mar 2018 13:24:06 -0800 Subject: [PATCH] Fix quoting in running(). Fixes #227 --- plexupdate-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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