mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Fix #54, keen an old copy of gzipped tweets until it's replaced
This commit is contained in:
@@ -26,7 +26,7 @@ fi
|
|||||||
page=1
|
page=1
|
||||||
saved=0
|
saved=0
|
||||||
|
|
||||||
test -s "$1.txt.gz" && gunzip "$1.txt.gz"
|
test -s "$1.txt.gz" && gunzip < "$1.txt.gz" > "$1.txt"
|
||||||
|
|
||||||
if test -s "$1.txt"
|
if test -s "$1.txt"
|
||||||
then
|
then
|
||||||
@@ -65,5 +65,5 @@ done
|
|||||||
echo "$1" saved "$saved" tweets
|
echo "$1" saved "$saved" tweets
|
||||||
|
|
||||||
test -L "$1.txt.gz" && rm "$1.txt.gz"
|
test -L "$1.txt.gz" && rm "$1.txt.gz"
|
||||||
gzip -v "$1.txt"
|
gzip -f "$1.txt"
|
||||||
ln -sfv "$1.txt.gz" tweets.txt
|
ln -sfv "$1.txt.gz" tweets.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user