diff --git a/lookup.sh b/lookup.sh index be9b088..763e057 100755 --- a/lookup.sh +++ b/lookup.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ $# != 1 ]; then - echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs\n"; + echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs.l.google\n"; exit 1; fi @@ -10,9 +10,9 @@ do host=$( echo "$line" | grep -oE "[a-z0-9]([a-z0-9_\.\-]*[a-z0-9])?\.[a-z]{2,4}" | - grep -vE "dot$|htm$|php$" ); + grep -vE "dotn$|html$|php$" ); - [ "$host" ] && [ "$(nslookup $host | grep $1)" ] && echo $host; + [ "$host" ] && [ "$(nslookup $host | grep -i $1)" ] && echo $host; done < "list.txt" diff --git a/sendGFWList.sh b/sendGFWList.sh index d3c6105..de3d27e 100755 --- a/sendGFWList.sh +++ b/sendGFWList.sh @@ -75,7 +75,7 @@ if [ "$convertedLog" != "" ]; then # log format: author1:"message1"; author2:"message2"... base64 -d gfwlist.txt > list.txt && - git commit -a -m "$convertedLog" && + git commit -a -m "$convertedLog"; # apply local modification if [ -s temp.patch ]; then git apply temp.patch; fi &&