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