From dd04de3f8aabd42aae232bee16c658e50e8af617 Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 6 May 2022 11:33:04 +0200 Subject: [PATCH] Always add time to version. --- check | 10 +++++++++- out | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/check b/check index ac4e9de..5a01873 100755 --- a/check +++ b/check @@ -6,5 +6,13 @@ set -o pipefail [ -e /opt/resource/common ] && cd /opt/resource/ . ./common -compute_version "$(fetch_file_infos get_files)" +version="$(compute_version "$(fetch_file_infos get_files)")" +jq -r tostring << EOF +{ + "version": { + "files": $version, + "time": $(date +%s) + } +} +EOF cleanup diff --git a/out b/out index 16985c8..e9469ba 100755 --- a/out +++ b/out @@ -39,7 +39,7 @@ jq -r tostring << EOF { "version": { "files": $version, - "command": true + "time": $(date +%s) } } EOF