Permalink
Browse files

bm90aGluZwo=

git-svn-id: http://autoproxy-gfwlist.googlecode.com/svn/trunk@977 92d94e00-0010-11de-bc25-5f29055a2a2d
  • Loading branch information...
1 parent 31870d0 commit 846979555b231fa99b207e72ea96aa66601c2bb6 lovelywcm@gmail.com committed Mar 26, 2010
Showing with 14 additions and 2 deletions.
  1. +9 −1 lookup.sh
  2. +5 −1 sendGFWList.sh
View
@@ -1,7 +1,15 @@
#!/bin/bash
if [ $# != 1 ]; then
- echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs.l.google\n";
+ echo -e "\
+ Usage:
+ $./lookup.sh wordpress
+ $./lookup.sh ghs.l.google
+ $./lookup.sh 72.14.203.121 // ghs
+ $./lookup.sh 67.207.139.81 // Posterous
+ $./lookup.sh 72.32.231.8 // Tumblr
+ $./lookup.sh typepad
+ ";
exit 1;
fi
View
@@ -89,7 +89,11 @@ if [ "$*" == "" ]; then
fi
# make sure the list doesn't contain unicode chars
-file list.txt | grep ASCII 1> /dev/null || (echo "List contains non-ASCII characters, please remove them." && exit 1) &&
+file list.txt | grep ASCII 1> /dev/null ||
+(
+ echo "List contains non-ASCII characters, please remove them." &&
+ exit 1;
+) &&
# update date and checksum
sed -i s/"Last Modified:.*$"/"Last Modified: $(date -R -r list.txt)"/ list.txt &&

0 comments on commit 8469795

Please sign in to comment.