concourse-ssh-resource/check

19 lines
281 B
Text
Raw Normal View History

2022-05-05 23:23:10 +02:00
#!/usr/bin/env sh
2022-05-06 02:20:44 +02:00
set -e
2022-05-06 03:44:58 +02:00
set -o pipefail
2022-05-06 02:20:44 +02:00
2022-05-06 03:44:58 +02:00
[ -e /opt/resource/common ] && cd /opt/resource/
2022-05-06 02:20:44 +02:00
. ./common
2022-05-06 11:33:04 +02:00
version="$(compute_version "$(fetch_file_infos get_files)")"
jq -r tostring << EOF
{
"version": {
"files": $version,
"time": $(date +%s)
}
}
EOF
2022-05-06 03:44:58 +02:00
cleanup