From f751279abf55c71761a0f9d7ef1b389a56f6fc34 Mon Sep 17 00:00:00 2001 From: Mattraks <16359027+Mattraks@users.noreply.github.com> Date: Sat, 12 Dec 2020 12:23:37 +0800 Subject: [PATCH] Fix gfwlist update errors --- luci-app-ssr-plus/root/usr/bin/ssr-gfw | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/luci-app-ssr-plus/root/usr/bin/ssr-gfw b/luci-app-ssr-plus/root/usr/bin/ssr-gfw index 5ad680b3..99f248c9 100755 --- a/luci-app-ssr-plus/root/usr/bin/ssr-gfw +++ b/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