Skip to content

Commit ac7d242

Browse files
authored
Update common.sh
1 parent 9699ef6 commit ac7d242

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ for check_location_api in ${check_location_api_arr[*]}
9393
do
9494
location=$(timeout 3 curl -SsL ${check_location_api} | grep location)
9595
[ ".${location}" = "." ] && continue
96-
echo "${location}" | grep '中国' &> /dev/null && echo "China" || echo "Other"
96+
echo "${location}" | grep -E -v '香港|澳门|台湾' | grep '中国' &> /dev/null && echo "China" || echo "Other"
9797
break
9898
done
9999

0 commit comments

Comments
 (0)