Fix gfwlist update errors
@@ -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