From 99c872bb5751c6f97421e3bbb05d146c6d398d24 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Sun, 28 Jun 2026 14:35:03 +0200 Subject: fetch program print new program path --- fetch_program.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch_program.sh b/fetch_program.sh index 91684ac..a87d156 100755 --- a/fetch_program.sh +++ b/fetch_program.sh @@ -24,8 +24,6 @@ if [ -f "$last_xml" ]; then fi fi -echo 'New program content fetched' - cat "$xml_path" | xq '.schedule.day | map(.room) | flatten | map(.event) | map(select(. != null)) | flatten | map({title, date, room, duration}) | sort_by(.date)' > "$json_path" if [ -f "$last_json" ]; then @@ -35,3 +33,5 @@ fi ln -sfr "$json_path" programs/current.json +echo 'New program content fetched' +echo "programs/current.json -> programs/$(readlink programs/current.json)" -- cgit v1.3.1