18 lines
281 B
Bash
Executable file
18 lines
281 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
[ -e /opt/resource/common ] && cd /opt/resource/
|
|
. ./common
|
|
|
|
version="$(compute_version "$(fetch_file_infos get_files)")"
|
|
jq -r tostring << EOF
|
|
{
|
|
"version": {
|
|
"files": $version,
|
|
"time": $(date +%s)
|
|
}
|
|
}
|
|
EOF
|
|
cleanup
|