Browse Source

Merge pull request #269 from Mattraks/fix

Fix gfwlist update errors
coolsnowwolf 4 years ago
parent
commit
0eebbebf67
1 changed files with 1 additions and 2 deletions
  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