#!/bin/bash set -ex destination_checkout="$1" destination_pr_json="$2" origin_checkout="$3" origin_ref="$4" test -d $destination_checkout test -d $origin_checkout test "$origin_ref" date +%s > $destination_checkout/last