From 024b8c715911814ca9c376246fd50f8d55bb3ba5 Mon Sep 17 00:00:00 2001 From: lovelywcm Date: Fri, 26 Mar 2010 03:07:38 +0000 Subject: [PATCH] bm90aGluZwo= --- lookup.sh | 10 +++++++++- sendGFWList.sh | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lookup.sh b/lookup.sh index a20938d..9a3d41b 100755 --- a/lookup.sh +++ b/lookup.sh @@ -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 diff --git a/sendGFWList.sh b/sendGFWList.sh index 4f140eb..cbea854 100755 --- a/sendGFWList.sh +++ b/sendGFWList.sh @@ -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 &&