From a2c44f63e8f05f05eeffb8dec97d8db934742164 Mon Sep 17 00:00:00 2001 From: kunsi Date: Fri, 20 Sep 2024 18:45:10 +0200 Subject: [PATCH] bw/bundles/voctocore-artwork: show fahrplan version when downloading new schedule --- .../voctocore-artwork/files/update-schedule-and-overlays | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundlewrap/bundles/voctocore-artwork/files/update-schedule-and-overlays b/bundlewrap/bundles/voctocore-artwork/files/update-schedule-and-overlays index 9542052e..520e268d 100644 --- a/bundlewrap/bundles/voctocore-artwork/files/update-schedule-and-overlays +++ b/bundlewrap/bundles/voctocore-artwork/files/update-schedule-and-overlays @@ -28,8 +28,9 @@ then if [[ "$sha_old" != "$sha_new" ]] then chmod go+r "$tmpdir/schedule.json" + version="$(jq '.schedule.version' < "$tmpdir/schedule.json")" mv "$tmpdir/schedule.json" "/opt/voc/schedule.json" - voc2alert "info" "schedule" "Downloading schedule from $schedule succeeded" + voc2alert "info" "schedule" "Downloading schedule from $schedule succeeded, fahrplan version $version" fi fi fi