Always add time to version.

This commit is contained in:
redxef 2022-05-06 11:33:04 +02:00
parent 01401759b7
commit dd04de3f8a
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
2 changed files with 10 additions and 2 deletions

10
check
View file

@ -6,5 +6,13 @@ set -o pipefail
[ -e /opt/resource/common ] && cd /opt/resource/ [ -e /opt/resource/common ] && cd /opt/resource/
. ./common . ./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 cleanup

2
out
View file

@ -39,7 +39,7 @@ jq -r tostring << EOF
{ {
"version": { "version": {
"files": $version, "files": $version,
"command": true "time": $(date +%s)
} }
} }
EOF EOF