mirror of https://github.com/x89/Shreddit
parent
637a14aba3
commit
4336be4429
@ -1,3 +1,4 @@
|
||||
*.json
|
||||
data.json
|
||||
user.json
|
||||
*.swp
|
||||
*~
|
||||
|
@ -1,19 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
USER=$1
|
||||
|
||||
if [ $2 ]; then
|
||||
DAYS=$2
|
||||
else
|
||||
DAYS=7
|
||||
fi
|
||||
|
||||
echo "Deleting everything before $DAYS days ago for user $USER"
|
||||
|
||||
echo "Running grab.py to get your history..."
|
||||
python2 grab.py $USER || exit 1
|
||||
|
||||
echo "Running kill.py to annihilate your history..."
|
||||
python2 kill.py $DAYS || exit 1
|
||||
python2 kill.py $DAYS || exit 2
|
||||
|
||||
echo "Everything seemed to run successfully."
|
||||
echo "Everything seemed to execute successfully."
|
||||
|
Loading…
Reference in new issue