Always add time to version.
This commit is contained in:
parent
01401759b7
commit
dd04de3f8a
2 changed files with 10 additions and 2 deletions
10
check
10
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
|
||||
|
|
2
out
2
out
|
@ -39,7 +39,7 @@ jq -r tostring << EOF
|
|||
{
|
||||
"version": {
|
||||
"files": $version,
|
||||
"command": true
|
||||
"time": $(date +%s)
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue