浏览代码

luci-app-ssr-plus: update.lua: fix typo erro.

Fixed: https://github.com/fw876/helloworld/commit/96fff440034ecd4691c5e5437a1f76227c5f97ab
zxl hhyccc 11 月之前
父节点
当前提交
5e2d859bc4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua

+ 1 - 1
luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua

@@ -9,7 +9,7 @@ require "luci.model.uci"
 local icount = 0
 local icount = 0
 local args = arg[1]
 local args = arg[1]
 local uci = luci.model.uci.cursor()
 local uci = luci.model.uci.cursor()
-local TMP_DNSMASQ_PATH = luci.sys.exec("find /tmp/dnsmasq*/dnsmasq-ssrplus.d -type d -print -quit 2>/dev/null")
+local TMP_DNSMASQ_PATH = luci.sys.exec("find /tmp/dnsmasq.*/dnsmasq-ssrplus.d -type d -print 2>/dev/null"):gsub("%s+", "")
 local TMP_PATH = "/var/etc/ssrplus"
 local TMP_PATH = "/var/etc/ssrplus"
 -- match comments/title/whitelist/ip address/excluded_domain
 -- match comments/title/whitelist/ip address/excluded_domain
 local comment_pattern = "^[!\\[@]+"
 local comment_pattern = "^[!\\[@]+"