mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2024-11-24 22:42:46 +01:00
8a203a329c
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
14 lines
300 B
Bash
Executable File
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 |