mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 13:19:37 +02:00
Adapt to new bot structure
This commit is contained in:
parent
ff7e08ada9
commit
3f84e1d831
3414 changed files with 41525 additions and 709 deletions
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
SEARCHDIR="./Ingegneria del Software/"
|
||||
|
||||
echo "Invalid URLs:"
|
||||
|
||||
for img in `grep "img" "$SEARCHDIR" -R | sed -E 's/^(.*?)\.txt\:img\=//'`; do
|
||||
img=$(echo "$img"|tr -d '\n'|tr -d '\r')
|
||||
curl -I "$img" 2>/dev/null | \
|
||||
grep -i "Content-Type: image/" >/dev/null
|
||||
if [ "$?" -ne 0 ]; then
|
||||
(
|
||||
cd "$SEARCHDIR"
|
||||
grep "$img" . -R
|
||||
)
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue