mirror of https://github.com/x89/Shreddit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
338 B
20 lines
338 B
13 years ago
|
#!/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
|
||
|
|
||
|
echo "Everything seemed to run successfully."
|