#!/usr/bin/env bash
set -euo pipefail
test "$(git -C /home/ubuntu/wt/pr-33587 rev-parse HEAD)" = 9f3180ba42ff5597d9a3d8a2f62ff41ce52bab92
test -z "$(git -C /home/ubuntu/wt/pr-33587 status --short)"
trap 'git -C /home/ubuntu/wt/pr-33587 checkout -- apps/server/src/device/LocalDeviceHost.ts apps/server/src/device/DeviceToolchain.ts' EXIT
git -C /home/ubuntu/wt/pr-33587 show 9110dc2c93:apps/server/src/device/LocalDeviceHost.ts > /home/ubuntu/wt/pr-33587/apps/server/src/device/LocalDeviceHost.ts
git -C /home/ubuntu/wt/pr-33587 show 9110dc2c93:apps/server/src/device/DeviceToolchain.ts > /home/ubuntu/wt/pr-33587/apps/server/src/device/DeviceToolchain.ts
test "$#" -gt 0
node /tmp/lead-33587-r1/capture-2/run-rows.mjs before "$@"
git -C /home/ubuntu/wt/pr-33587 checkout -- apps/server/src/device/LocalDeviceHost.ts apps/server/src/device/DeviceToolchain.ts
test -z "$(git -C /home/ubuntu/wt/pr-33587 status --short)"
git -C /home/ubuntu/wt/pr-33587 rev-parse HEAD
