summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ddns/root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-ddns/root/usr')
-rwxr-xr-xapplications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
index 6db329c186..b2e60cb3c2 100755
--- a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
+++ b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
@@ -160,8 +160,8 @@ local methods = {
local res = {}
local ver
- local _, ctrl = pcall(io.lines, "/usr/lib/opkg/info/%s.control" % srv_name)
- if ctrl then
+ local ok, ctrl = pcall(io.lines, "/usr/lib/opkg/info/%s.control" % srv_name)
+ if ok then
for line in ctrl do
ver = line:match("^Version: (.+)$")