chore(tool): ser más silencioso y fallar al bajar feeds

This commit is contained in:
Cat /dev/Nulo 2022-12-20 17:29:56 -03:00
parent 18934e366b
commit 376b23b93e

8
tool
View file

@ -10,9 +10,13 @@ build() {
check() {
./node_modules/.bin/tsc --noEmit
}
refresh_feed() {
echo "Refreshing $1"
busybox wget -qO "cached-feeds/$1.xml" "$2" || exit $?
}
refresh_feeds() {
wget -nv -O cached-feeds/fauno.xml https://fauno.endefensadelsl.org/feed.xml
wget -nv -O cached-feeds/copiona.xml https://copiona.com/feed.xml
refresh_feed fauno https://fauno.endefensadelsl.org/feed.xml
refresh_feed copiona https://copiona.com/feed.xml
}
fatal() {