Fix dangling symlinks caused by previous create.php versions

This commit is contained in:
Kai Hendry
2014-07-14 01:08:00 +08:00
parent ef7e2b8b5d
commit 9e5ae5bb05

View File

@@ -64,5 +64,7 @@ done
echo $1 saved $saved tweets
test -L "$1.txt.gz" && rm "$1.txt.gz"
gzip -v "$1.txt"
ln -sfv "$1.txt.gz" tweets.txt.gz
stat -L tweets.txt 2>/dev/null || rm -f tweets.txt