mx-update-np: re-use result from previous API call
This commit is contained in:
parent
92ffb65da4
commit
72d0c015fc
|
@ -9,7 +9,7 @@ local np
|
||||||
while sleep 10; do
|
while sleep 10; do
|
||||||
np=$(np-subsonic)
|
np=$(np-subsonic)
|
||||||
if [[ -n "${np}" ]]; then
|
if [[ -n "${np}" ]]; then
|
||||||
mx-set-status "np: $(np-subsonic)"
|
mx-set-status "np: ${np}"
|
||||||
else
|
else
|
||||||
mx-set-status
|
mx-set-status
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue