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