From 376b23b93e49008a46c630a8642009874372f2de Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 20 Dec 2022 17:29:56 -0300 Subject: [PATCH] =?UTF-8?q?chore(tool):=20ser=20m=C3=A1s=20silencioso=20y?= =?UTF-8?q?=20fallar=20al=20bajar=20feeds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tool b/tool index 854e287..72510ee 100755 --- a/tool +++ b/tool @@ -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() {