clear appcache symlink if there is one

This commit is contained in:
Kai Hendry
2012-07-15 21:52:21 +02:00
parent 86dfd044aa
commit 7cc21c9119
2 changed files with 2 additions and 2 deletions

View File

@@ -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