浏览代码

Merge pull request #269 from Mattraks/fix

Fix gfwlist update errors
coolsnowwolf 4 年之前
父节点
当前提交
0eebbebf67
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      luci-app-ssr-plus/root/usr/bin/ssr-gfw

+ 1 - 2
luci-app-ssr-plus/root/usr/bin/ssr-gfw

@@ -18,8 +18,7 @@ prev = cur;
 }' | sort -u
 rm -f /tmp/gfwlist.txt
 }
-grep -w 'google' /tmp/ssr-update.$1 >/dev/null 2>&1
-if [ $? ];then
+if (grep -w 'google' /tmp/ssr-update.$1 >/dev/null) ;then
 cp -rf /tmp/ssr-update.$1 /tmp/gfw.txt
 else
 generate_china_banned /tmp/ssr-update.$1 >/tmp/gfw.txt