shi/reset.sh

18 lines
291 B
Bash
Raw Normal View History

2018-12-30 00:32:48 +00:00
#!/bin/sh
echo '0' > latest
echo "" > log.txt
for board in boards/*
do
echo reseting board "$board"
cp "$board"/index.html.template "$board"/index.html
for post in $board/*
do
if echo "$post" | grep -E "[1-9].*$"
then
echo deleting post "$post"
rm -rf "$post"
fi
done
done