From 7300db781b75010c072752241727e9224dbd1fce Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sat, 21 Sep 2019 14:38:55 +0800 Subject: [PATCH] procd: fix invalid JSON filter expression in procd_running() --- package/system/procd/files/procd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index a6a8fc12fc..cf74333a7e 100755 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -404,7 +404,7 @@ procd_running() { json_init json_add_string name "$service" - running=$(_procd_ubus_call list | jsonfilter -e "@.$service.instances.${instance}.running") + running=$(_procd_ubus_call list | jsonfilter -e "@['$service'].instances['$instance'].running") [ "$running" = "true" ] }