1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-11-24 13:42:47 +01:00
Nextcloud-News/bin/tools/check_feeds.sh
Sean Molenaar 8a203a329c Fix minor issues, prepare for foreign keys and check feeds
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-09 22:15:03 +02:00

14 lines
300 B
Bash
Executable File

#!/bin/bash
feeds=$(cat ./lib/Explore/feeds/feeds.en.json | jq -r .[][0].feed)
for feed in ${feeds} ; do
if [[ $feed == "http://"* ]]; then
echo "Insecure feed $feed"
exit 1;
fi
if ! curl --fail --silent "$feed" > /dev/null; then
echo "Failed to fetch $feed"
exit 1;
fi
done