#!/bin/sh set -e # TODO read 'version' arg from request and make sure it # matches the version of this script status=`cat /tmp/restic/snapshot_status_$HOOK_request_id` echo "{\"status\":\"$status\"}"