an imageboard in sh https://sose.tilde.team/shi/
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.
 
 

22 lines
396 B

#!/bin/sh
# DEBUG PURPOSES ONLY
# USERS SHOULD USE THE FUNCTION PROVIDED IN util.sh!
echo '0' > latest
echo "" > log.txt
rm -rf ./inbox/*
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
pkill -f nc