diff --git a/create.cgi b/create.cgi index 2e4e8d5..59eb0b0 100755 --- a/create.cgi +++ b/create.cgi @@ -104,7 +104,8 @@ END fi ln -sf $id.txt tweets.txt -sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcache +test -h greptweet.appcache && rm -f greptweet.appcache +sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcache else rm -rf $oldpwd/u/$id diff --git a/fetch-tweets.sh b/fetch-tweets.sh index cf8f99b..2b0e76d 100755 --- a/fetch-tweets.sh +++ b/fetch-tweets.sh @@ -1,7 +1,6 @@ #!/bin/sh # vim: set ts=4 sw=4 - umask 002 api="http://api.twitter.com/1/statuses/user_timeline.xml?"