Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
Per Documentation check should return passed version (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinji62 authored and superbrothers committed Oct 13, 2017
1 parent 405b0e3 commit 803ed6e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ List of contributors
====================

Kazuki Suda
Etourneau Gwenn
15 changes: 13 additions & 2 deletions assets/check
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,16 @@ set -o pipefail
exec 3>&1 # make stdout available as fd 3 for the result
exec 1>&2 # redirect all output to stderr for logging

echo "$0 is not implemented."
# vim: ai ts=2 sw=2 et sts=2 ft=sh
PAYLOAD=$(mktemp /tmp/resource-check.XXXXXX)

cat > "$PAYLOAD" <&0

TS=$(jq '.version.timestamp // empty' < "$PAYLOAD")

if [ -z "$TS" ]; then
echo '[]' >&3
else
jq -n "[
{ timestamp: $TS }
]" >&3
fi

0 comments on commit 803ed6e

Please sign in to comment.