#!/usr/bin/env bash
set -euo pipefail

cd "${HOME}/driving"

command="git --no-pager log --decorate=short --pretty=oneline -n1"

echo "
+----------------------- OPERATOR DRIVING SOFTWARE --------------------------+"
${command}

echo "
+------------------------ MAIN-AI DRIVING SOFTWARE --------------------------+"
ssh main-ai "cd driving; ${command}"
sleep 1  # allow render to occur
gnome-screenshot
